db_lock, archive/bz2, ...: workaround for G_STATIC_MUTEX_INIT warning

This commit is contained in:
Max Kellermann
2012-04-04 20:07:11 +02:00
parent 712e3eb120
commit 4feb57e895
2 changed files with 11 additions and 0 deletions

View File

@@ -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)
{