38 lines
1.4 KiB
Diff
38 lines
1.4 KiB
Diff
From 4cd8fccc11f732ac76bf522562e06fc90ae82144 Mon Sep 17 00:00:00 2001
|
||
From: Emmanuel Fleury <emmanuel.fleury@u-bordeaux.fr>
|
||
Date: Sun, 27 Jan 2019 03:10:37 +0100
|
||
Subject: [PATCH 547/682] Fixing missing initializer in
|
||
g_static_rec_mutex_init()
|
||
MIME-Version: 1.0
|
||
Content-Type: text/plain; charset=UTF-8
|
||
Content-Transfer-Encoding: 8bit
|
||
|
||
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);
|
||
|
||
--
|
||
2.19.1
|
||
|