X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=common-src%2Fmatch.c;fp=common-src%2Fmatch.c;h=cd363e45877ca5e399040ad7d7744284de8fa7cb;hb=109540caa4e37a3663b3dcfb9a205b9609e3f561;hp=0981a43f74484a3e7c7a8e1357a80f26a8452454;hpb=4c9eba1feb11adf189bceb4001c425e641f0b56a;p=debian%2Famanda diff --git a/common-src/match.c b/common-src/match.c index 0981a43..cd363e4 100644 --- a/common-src/match.c +++ b/common-src/match.c @@ -153,7 +153,14 @@ static struct mword_regexes mword_slash_regexes = { * be called from within threads, so play it safe. */ -static GStaticMutex re_cache_mutex = G_STATIC_MUTEX_INIT; +#if (GLIB_MAJOR_VERSION > 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 31)) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wmissing-field-initializers" + static GStaticMutex re_cache_mutex = G_STATIC_MUTEX_INIT; +# pragma GCC diagnostic pop +#else + static GStaticMutex re_cache_mutex = G_STATIC_MUTEX_INIT; +#endif static GHashTable *regex_cache = NULL, *regex_cache_newline = NULL; /*