X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=common-src%2Fmatch.c;fp=common-src%2Fmatch.c;h=cd363e45877ca5e399040ad7d7744284de8fa7cb;hb=949b8910a5e23c4285d0b1aedacfc82a14dc97a5;hp=0981a43f74484a3e7c7a8e1357a80f26a8452454;hpb=c6f0a88c567f8536c498f554285aed1f8150da18;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; /*