db_lock, archive/bz2, ...: workaround for G_STATIC_MUTEX_INIT warning
This commit is contained in:
parent
712e3eb120
commit
4feb57e895
@ -103,6 +103,11 @@ bz2_destroy(struct bz2_input_stream *data)
|
|||||||
|
|
||||||
/* archive open && listing routine */
|
/* 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 *
|
static struct archive_file *
|
||||||
bz2_open(const char *pathname, GError **error_r)
|
bz2_open(const char *pathname, GError **error_r)
|
||||||
{
|
{
|
||||||
|
@ -19,6 +19,12 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "db_lock.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;
|
GStaticMutex db_mutex = G_STATIC_MUTEX_INIT;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user