diff --git a/glib/tests/mem-overflow.c b/glib/tests/mem-overflow.c index 64ec0b0cd..61225b763 100644 --- a/glib/tests/mem-overflow.c +++ b/glib/tests/mem-overflow.c @@ -200,7 +200,7 @@ empty_alloc (void) } #endif -#ifdef __GNUC__ +#if defined(__GNUC__) && __GNUC__ > 6 #pragma GCC diagnostic pop #endif