From 2b216e7db350944e7beaf4cb881a7146402e8e0a Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 14 Jun 2012 12:52:11 +0200 Subject: Selectively disable warnings for deprecated GValueArray GLib 2.33 and further deprecates GValueArray. However, we still need it as long as we are using dbus-glib, so selectively disable the deprecation warnings for the three functions that use GValueArray. This allows us to continue to build with -Werror. --- libupower-glib/up-device.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libupower-glib/up-device.c') diff --git a/libupower-glib/up-device.c b/libupower-glib/up-device.c index 918f51a..ce826c6 100644 --- a/libupower-glib/up-device.c +++ b/libupower-glib/up-device.c @@ -563,6 +563,10 @@ out: return ret; } +/* FIXME: GValueArray is deprecated in GLib 2.33+, but we need to convert to + * GDBus to get rid of it */ +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + /** * up_device_get_history_sync: * @device: a #UpDevice instance. @@ -728,6 +732,8 @@ out: return array; } +#pragma GCC diagnostic error "-Wdeprecated-declarations" + /* * up_device_set_property: */ -- cgit v1.2.3