[glib: 1/2] tests: Fix compilation when GLIB_DISABLE_DEPRECATION_WARNINGS is defined
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] tests: Fix compilation when GLIB_DISABLE_DEPRECATION_WARNINGS is defined
- Date: Wed, 30 Mar 2022 15:26:55 +0000 (UTC)
commit 84940a56fda60900e8724e4193c18396b44acb23
Author: Philip Withnall <pwithnall endlessos org>
Date: Tue Mar 22 10:15:40 2022 +0000
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>
glib/tests/relation.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/glib/tests/relation.c b/glib/tests/relation.c
index f96890b2bd..8caf4573a2 100644
--- a/glib/tests/relation.c
+++ b/glib/tests/relation.c
@@ -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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]