Disable glib deprecated warnings
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 16 Feb 2012 09:02:13 +0000 (10:02 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 17 Feb 2012 08:20:09 +0000 (09:20 +0100)
We need GValueArray for dbus-glib, and it got deprecated in GLib 2.31.x

https://bugzilla.gnome.org/show_bug.cgi?id=670196

configure.ac

index bb45b05..0df9011 100644 (file)
@@ -405,6 +405,10 @@ IT_PROG_INTLTOOL([0.35.0])
 # Error flags
 # -----------------------------------------------------------
 
+# Disable GLib deprecation warnings for now (#670196); GValueArray is deprecated
+# but we need it for dbus-glib. Porting to GDBus will solve this (#653198)
+AC_DEFINE(GLIB_DISABLE_DEPRECATION_WARNINGS, 1, [Build with GLib deprecated])
+
 AS_COMPILER_FLAG([-Wall], [ERROR_CFLAGS="-Wall"], [ERROR_CFLAGS=""])
 AS_COMPILER_FLAG([-Werror], [werror=yes], [werror=no])