From 4feb57e8953d114b85abd3910b477ef58ef171ae Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 4 Apr 2012 20:07:11 +0200 Subject: db_lock, archive/bz2, ...: workaround for G_STATIC_MUTEX_INIT warning --- src/db_lock.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/db_lock.c') 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; -- cgit v1.2.3