Commit 4feb57e8 authored by Max Kellermann's avatar Max Kellermann

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

parent 712e3eb1
......@@ -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)
{
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment