tests: Fix compilation when GLIB_DISABLE_DEPRECATION_WARNINGS is defined

This should fix the Coverity build, which runs with
`-DGLIB_DISABLE_DEPRECATION_WARNINGS` defined in the environment (see
`.gitlab-ci.yml`).

See: https://gitlab.gnome.org/GNOME/glib/-/jobs/1907625
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-03-22 10:15:40 +00:00
parent 56a3747038
commit 84940a56fd

View File

@ -22,7 +22,10 @@
* GLib at ftp://ftp.gtk.org/pub/gtk/.
*/
/* we know we are deprecated here, no need for warnings */
#ifndef GLIB_DISABLE_DEPRECATION_WARNINGS
#define GLIB_DISABLE_DEPRECATION_WARNINGS
#endif
#include <glib.h>