mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 23:46:15 +01:00
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:
parent
56a3747038
commit
84940a56fd
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user