diff options
Diffstat (limited to '')
-rw-r--r-- | src/db_lock.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/db_lock.c b/src/db_lock.c index 88adc3614..53759673d 100644 --- a/src/db_lock.c +++ b/src/db_lock.c @@ -19,6 +19,12 @@ #include "config.h" #include "db_lock.h" +#include "gcc.h" + +#if GCC_CHECK_VERSION(4, 2) +/* workaround for a warning caused by G_STATIC_MUTEX_INIT */ +#pragma GCC diagnostic ignored "-Wmissing-field-initializers" +#endif GStaticMutex db_mutex = G_STATIC_MUTEX_INIT; |