build: Disable deprecation warnings with --enable-deprecated
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 11 Oct 2011 22:06:06 +0000 (23:06 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 11 Oct 2011 22:06:51 +0000 (23:06 +0100)
Just like we turn everything on with --disable-deprecated, we have to
turn everything off with --enable-deprecated. This means disabling the
deprecation warnings from the compiler as well.

configure.ac

index a0bce59..4606dd7 100644 (file)
@@ -741,7 +741,7 @@ AS_CASE([$enable_deprecated],
 
         [yes],
         [
-          CLUTTER_DEPRECATED_CFLAGS=""
+          CLUTTER_DEPRECATED_CFLAGS="-DGLIB_DISABLE_DEPRECATION_WARNINGS -DCLUTTER_DISABLE_DEPRECATION_WARNINGS"
         ],
 
         [AC_MSG_ERROR([Unknown argument for --enable-deprecated])]