mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 22:46:15 +01:00
G_STATIC_REC_MUTEX_INIT: Fix missing initialization.
Add the third struct field, zeroed, to avoid a compiler warning.
This commit is contained in:
parent
8fdfa8bf33
commit
7ba753b002
@ -271,7 +271,7 @@ struct _GStaticRecMutex
|
|||||||
GSystemThread owner;
|
GSystemThread owner;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define G_STATIC_REC_MUTEX_INIT { G_STATIC_MUTEX_INIT, 0 }
|
#define G_STATIC_REC_MUTEX_INIT { G_STATIC_MUTEX_INIT, 0, {{0, 0, 0, 0}} }
|
||||||
void g_static_rec_mutex_init (GStaticRecMutex *mutex);
|
void g_static_rec_mutex_init (GStaticRecMutex *mutex);
|
||||||
void g_static_rec_mutex_lock (GStaticRecMutex *mutex);
|
void g_static_rec_mutex_lock (GStaticRecMutex *mutex);
|
||||||
gboolean g_static_rec_mutex_trylock (GStaticRecMutex *mutex);
|
gboolean g_static_rec_mutex_trylock (GStaticRecMutex *mutex);
|
||||||
|
Loading…
Reference in New Issue
Block a user