Hey, GValueArray is deprecated since GLib 2.31.14, but we need to use it for dbus-glib based code.
The attached patch just avoids issuing warnings when we use deprecated methods, so that we can still compile with -Werror. We should re-enable deprecation warnings once we merge 06-api, as we don't use GValueArrays there. Cheers, -- Aleksander
>From 86cec854ed07848d2d0df9341d8f20d3c4d51616 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado <aleksan...@lanedo.com> Date: Tue, 7 Feb 2012 12:56:45 +0100 Subject: [PATCH] build: do not warn about using deprecated methods GValueArray is deprecated since GLib 2.31.14, but we need to use it for dbus-glib based code. We should re-enable deprecation warnings once we switch to GDBus. --- m4/compiler_warnings.m4 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/m4/compiler_warnings.m4 b/m4/compiler_warnings.m4 index 6cea2f7..223da2d 100644 --- a/m4/compiler_warnings.m4 +++ b/m4/compiler_warnings.m4 @@ -10,7 +10,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then for option in -Wshadow -Wmissing-declarations -Wmissing-prototypes \ -Wdeclaration-after-statement -Wstrict-prototypes \ -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare \ - -fno-strict-aliasing; do + -fno-strict-aliasing -Wno-deprecated-declarations; do SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $option" AC_MSG_CHECKING([whether gcc understands $option]) -- 1.7.5.4
_______________________________________________ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list