db_lock, archive/bz2, ...: workaround for G_STATIC_MUTEX_INIT warning
This commit is contained in:
		| @@ -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; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann