summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2011-10-13 10:51:35 -0400
committerRyan Lortie <desrt@desrt.ca>2011-10-13 10:51:35 -0400
commitfd382156b80a0ba848d6de7e009337fdb32221d9 (patch)
tree594288c069ddf3c22352d43299ed67fec1db117b /tests
parent3ebdb4d46a97790e0d93db3e2411b44e46da0159 (diff)
downloadglib-fd382156b80a0ba848d6de7e009337fdb32221d9.tar.gz
tests: disable deprecation warnings for tests
We need to test deprecated functions, so don't warn us for doing so.
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am5
-rw-r--r--tests/gobject/Makefile.am1
-rw-r--r--tests/refcount/Makefile.am1
3 files changed, 5 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 59d02a7f0..3d7705af2 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -2,8 +2,9 @@ include $(top_srcdir)/Makefile.decl
SUBDIRS=gobject refcount
-AM_CPPFLAGS = \
- $(gmodule_INCLUDES) \
+AM_CPPFLAGS = \
+ $(gmodule_INCLUDES) \
+ -DGLIB_DISABLE_DEPRECATION_WARNINGS \
$(GLIB_DEBUG_FLAGS)
AM_CFLAGS = -g
diff --git a/tests/gobject/Makefile.am b/tests/gobject/Makefile.am
index 0ab5bf64c..fcb4e2348 100644
--- a/tests/gobject/Makefile.am
+++ b/tests/gobject/Makefile.am
@@ -2,6 +2,7 @@ include $(top_srcdir)/Makefile.decl
INCLUDES = \
$(gmodule_INCLUDES) \
+ -DGLIB_DISABLE_DEPRECATION_WARNINGS \
$(GLIB_DEBUG_FLAGS)
libglib = $(top_builddir)/glib/libglib-2.0.la
diff --git a/tests/refcount/Makefile.am b/tests/refcount/Makefile.am
index f904c1f77..1c7d71648 100644
--- a/tests/refcount/Makefile.am
+++ b/tests/refcount/Makefile.am
@@ -2,6 +2,7 @@ include $(top_srcdir)/Makefile.decl
INCLUDES = \
$(gmodule_INCLUDES) \
+ -DGLIB_DISABLE_DEPRECATION_WARNINGS \
$(GLIB_DEBUG_FLAGS)
libglib = $(top_builddir)/glib/libglib-2.0.la