summaryrefslogtreecommitdiff
path: root/tests/shm.c
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2013-11-25 00:33:24 -0500
committerRyan Lortie <desrt@desrt.ca>2013-11-25 00:34:44 -0500
commitc504631da4a13e621222564f6481b290c505c14d (patch)
tree3dd0c18e1eabb9e31b0e6b9008940c60a72eb740 /tests/shm.c
parent4384b36c7ff9f73e81401da10e0668eff64339e4 (diff)
downloaddconf-c504631da4a13e621222564f6481b290c505c14d.tar.gz
Suppress GLib deprecation warnings
The testsuite is happily using g_test_trap_fork() and dconf only builds on POSIX anyway, so this isn't a problem. Add version macros to the top of the testcases that use this API to suppress the deprecation warnings.
Diffstat (limited to 'tests/shm.c')
-rw-r--r--tests/shm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/shm.c b/tests/shm.c
index 86e3b34..66e67a2 100644
--- a/tests/shm.c
+++ b/tests/shm.c
@@ -1,4 +1,7 @@
#define _GNU_SOURCE
+
+#define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_36 /* Suppress deprecation warnings */
+
#include "../common/dconf-paths.h"
#include <glib/gstdio.h>
#include <sys/stat.h>