diff --git a/glib/tests/mem-overflow.c b/glib/tests/mem-overflow.c index e0c28e5e3..5e5dd68c0 100644 --- a/glib/tests/mem-overflow.c +++ b/glib/tests/mem-overflow.c @@ -23,6 +23,8 @@ #ifdef __GNUC__ #pragma GCC optimize (1) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Walloc-size-larger-than=" #endif #include "glib.h" @@ -198,6 +200,10 @@ empty_alloc (void) } #endif +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif + int main (int argc, char *argv[])