From 34b7126a4e0b743b07b9d55309fce0d15802b69c Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Wed, 15 Jun 2011 10:47:13 +0200 Subject: [PATCH] G_STATIC_REC_MUTEX_INIT: Add a 0 to the initialization. This avoids a compiler warning about an incomplete initialization when using this. --- glib/gthread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gthread.h b/glib/gthread.h index 82d40c0b8..40dafe511 100644 --- 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);