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/archive/bz2_archive_plugin.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/archive') 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) { -- cgit v1.2.3