[libgdata] freebase: Add missing volatile hint on refcount counter
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] freebase: Add missing volatile hint on refcount counter
- Date: Tue, 27 May 2014 00:55:58 +0000 (UTC)
commit 16886071e9f16a2833b4599e5a68fbe370b8aa30
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue May 27 02:53:45 2014 +0200
freebase: Add missing volatile hint on refcount counter
That is manipulated through atomic operators and should be marked as such.
.../freebase/gdata-freebase-topic-result.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdata/services/freebase/gdata-freebase-topic-result.c
b/gdata/services/freebase/gdata-freebase-topic-result.c
index 5357bbb..085ec5a 100644
--- a/gdata/services/freebase/gdata-freebase-topic-result.c
+++ b/gdata/services/freebase/gdata-freebase-topic-result.c
@@ -85,7 +85,7 @@ struct _GDataFreebaseTopicValue {
gchar *creator;
gint64 timestamp;
GValue value;
- gint ref_count;
+ volatile gint ref_count;
};
struct _GDataFreebaseTopicResultPrivate {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]