mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 11:56:16 +01:00
Fix missing field initializer in glib/deprecated/gthread.h
glib/deprecated/gthread-deprecated.c:473:42: warning: missing field 'unused' initializer static const GStaticMutex init_mutex = G_STATIC_MUTEX_INIT; ^ glib/deprecated/gthread.h:128:36: note: expanded from macro 'G_STATIC_MUTEX_INIT' ^ glib/deprecated/gthread-deprecated.c:659:45: warning: missing field 'unused' initializer static const GStaticRecMutex init_mutex = G_STATIC_REC_MUTEX_INIT; ^ glib/deprecated/gthread.h:170:35: note: expanded from macro 'G_STATIC_REC_MUTEX_INIT' ^ glib/deprecated/gthread.h:128:36: note: expanded from macro 'G_STATIC_MUTEX_INIT' ^ glib/deprecated/gthread-deprecated.c:959:42: warning: missing field 'unused' initializer static const GStaticRWLock init_lock = G_STATIC_RW_LOCK_INIT; ^ glib/deprecated/gthread.h:206:33: note: expanded from macro 'G_STATIC_RW_LOCK_INIT' ^ glib/deprecated/gthread.h:128:36: note: expanded from macro 'G_STATIC_MUTEX_INIT' ^
This commit is contained in:
parent
e3453f39dd
commit
83d46f6a0a
@ -125,7 +125,11 @@ void g_thread_foreach (GFunc thread_func,
|
||||
#endif
|
||||
|
||||
#define g_static_mutex_get_mutex g_static_mutex_get_mutex_impl GLIB_DEPRECATED_MACRO_IN_2_32
|
||||
#ifndef G_OS_WIN32
|
||||
#define G_STATIC_MUTEX_INIT { NULL, PTHREAD_MUTEX_INITIALIZER } GLIB_DEPRECATED_MACRO_IN_2_32_FOR(g_mutex_init)
|
||||
#else
|
||||
#define G_STATIC_MUTEX_INIT { NULL } GLIB_DEPRECATED_MACRO_IN_2_32_FOR(g_mutex_init)
|
||||
#endif
|
||||
typedef struct
|
||||
{
|
||||
GMutex *mutex;
|
||||
|
Loading…
Reference in New Issue
Block a user