[glib] G_STATIC_REC_MUTEX_INIT: Fix missing initialization.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] G_STATIC_REC_MUTEX_INIT: Fix missing initialization.
- Date: Mon, 4 Jul 2011 06:59:09 +0000 (UTC)
commit 7ba753b002ca9888a46137b65f347a2f5f408e9e
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Jul 4 08:58:00 2011 +0200
G_STATIC_REC_MUTEX_INIT: Fix missing initialization.
Add the third struct field, zeroed, to avoid a compiler warning.
glib/gthread.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gthread.h b/glib/gthread.h
index 40dafe5..9f5b34b 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, 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_lock (GStaticRecMutex *mutex);
gboolean g_static_rec_mutex_trylock (GStaticRecMutex *mutex);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]