[glib: 8/10] Fixing missing initializer in g_static_rec_mutex_init()



commit 4cd8fccc11f732ac76bf522562e06fc90ae82144
Author: Emmanuel Fleury <emmanuel fleury u-bordeaux fr>
Date:   Sun Jan 27 03:10:37 2019 +0100

    Fixing missing initializer in g_static_rec_mutex_init()
    
    glib/deprecated/gthread-deprecated.c: In function ‘g_static_rec_mutex_init’:
    glib/deprecated/gthread-deprecated.c:657:3: error: missing initializer for field ‘depth’ of 
‘GStaticRecMutex’ {aka ‘const struct _GStaticRecMutex’} [-Werror=missing-field-initializers]
       static const GStaticRecMutex init_mutex = G_STATIC_REC_MUTEX_INIT;
       ^~~~~~
    In file included from glib/deprecated/gthread-deprecated.c:30:
    glib/deprecated/gthread.h:161:9: note: ‘depth’ declared here
       guint depth;
             ^~~~~

 glib/deprecated/gthread.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/deprecated/gthread.h b/glib/deprecated/gthread.h
index d0814a875..9e1c2ff56 100644
--- a/glib/deprecated/gthread.h
+++ b/glib/deprecated/gthread.h
@@ -171,7 +171,7 @@ struct _GStaticRecMutex
   } unused;
 };
 
-#define G_STATIC_REC_MUTEX_INIT { G_STATIC_MUTEX_INIT }
+#define G_STATIC_REC_MUTEX_INIT { G_STATIC_MUTEX_INIT, 0, { 0 } }
 GLIB_DEPRECATED_IN_2_32_FOR(g_rec_mutex_init)
 void     g_static_rec_mutex_init        (GStaticRecMutex *mutex);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]