projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23f6844
)
G_STATIC_REC_MUTEX_INIT: Add a 0 to the initialization.
author
Murray Cumming
<murrayc@murrayc.com>
Wed, 15 Jun 2011 08:47:13 +0000
(10:47 +0200)
committer
Murray Cumming
<murrayc@murrayc.com>
Wed, 15 Jun 2011 08:47:13 +0000
(10:47 +0200)
This avoids a compiler warning about an incomplete initialization
when using this.
glib/gthread.h
patch
|
blob
|
history
diff --git
a/glib/gthread.h
b/glib/gthread.h
index
82d40c0
..
40dafe5
100644
(file)
--- a/
glib/gthread.h
+++ b/
glib/gthread.h
@@
-271,7
+271,7
@@
struct _GStaticRecMutex
GSystemThread owner;
};
-#define G_STATIC_REC_MUTEX_INIT { G_STATIC_MUTEX_INIT }
+#define G_STATIC_REC_MUTEX_INIT { G_STATIC_MUTEX_INIT
, 0
}
void g_static_rec_mutex_init (GStaticRecMutex *mutex);
void g_static_rec_mutex_lock (GStaticRecMutex *mutex);
gboolean g_static_rec_mutex_trylock (GStaticRecMutex *mutex);