tests: Fix a pragma warning on FreeBSD

This fixes the following warning, by making the compiler checks for the
`pop` match those for the `push`:
```
[221/1124] Compiling C object 'glib/tests/d796b50@@mem-overflow@exe/mem-overflow.c.o'.
../glib/tests/mem-overflow.c:204:24: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
 #pragma GCC diagnostic pop
```

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2019-08-24 15:49:48 +03:00
parent 5558c668a9
commit f9a24ced63

View File

@ -200,7 +200,7 @@ empty_alloc (void)
}
#endif
#ifdef __GNUC__
#if defined(__GNUC__) && __GNUC__ > 6
#pragma GCC diagnostic pop
#endif