[glib] tests: disable deprecation warnings for tests



commit fd382156b80a0ba848d6de7e009337fdb32221d9
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Oct 13 10:51:35 2011 -0400

    tests: disable deprecation warnings for tests
    
    We need to test deprecated functions, so don't warn us for doing so.

 tests/Makefile.am          |    5 +++--
 tests/gobject/Makefile.am  |    1 +
 tests/refcount/Makefile.am |    1 +
 3 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 59d02a7..3d7705a 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 0ab5bf6..fcb4e23 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 f904c1f..1c7d716 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]