G_STATIC_REC_MUTEX_INIT: Add a 0 to the initialization.

This avoids a compiler warning about an incomplete initialization
when using this.
This commit is contained in:
Murray Cumming 2011-06-15 10:47:13 +02:00
parent 23f684454f
commit 34b7126a4e

View File

@ -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);