diff options
author | Max Kellermann <max@duempel.org> | 2012-04-04 20:07:11 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-04-04 20:13:15 +0200 |
commit | 4feb57e8953d114b85abd3910b477ef58ef171ae (patch) | |
tree | 1832af7ba4f4efdb6194f6ffcd6daf427e344538 /src | |
parent | 712e3eb1201315ded996b3f004eb4c613e2cecdd (diff) | |
download | mpd-4feb57e8953d114b85abd3910b477ef58ef171ae.tar.gz mpd-4feb57e8953d114b85abd3910b477ef58ef171ae.tar.xz mpd-4feb57e8953d114b85abd3910b477ef58ef171ae.zip |
db_lock, archive/bz2, ...: workaround for G_STATIC_MUTEX_INIT warning
Diffstat (limited to 'src')
-rw-r--r-- | src/archive/bz2_archive_plugin.c | 5 | ||||
-rw-r--r-- | src/db_lock.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/archive/bz2_archive_plugin.c b/src/archive/bz2_archive_plugin.c index 303f22136..e2420048b 100644 --- a/src/archive/bz2_archive_plugin.c +++ b/src/archive/bz2_archive_plugin.c @@ -103,6 +103,11 @@ bz2_destroy(struct bz2_input_stream *data) /* archive open && listing routine */ +#if GCC_CHECK_VERSION(4, 2) +/* workaround for a warning caused by G_STATIC_MUTEX_INIT */ +#pragma GCC diagnostic ignored "-Wmissing-field-initializers" +#endif + static struct archive_file * bz2_open(const char *pathname, GError **error_r) { 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; |