diff options
author | Thomas Haller <thaller@redhat.com> | 2014-10-31 20:23:14 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-10-31 21:03:49 +0100 |
commit | ad3b90cf877f444e57ffa9b55e8325cac74b1ed3 (patch) | |
tree | 4add78fae6e49c90a9fa34dc83c2acc10088f260 | |
parent | a6d9842cd6117f7d21b41c26e065208570c7c70e (diff) | |
download | network-manager-applet-ad3b90cf877f444e57ffa9b55e8325cac74b1ed3.tar.gz |
gconf-helpers: suppress deprecated warning for gnome-keyring-1
libgnome-keyring is marked as deprecated in favour of libsecret.
We only use it for the legacy gconf-helpers. That code will be
removed in the future, so don't bother an just suppress the
deprecation warning.
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r-- | src/gconf-helpers/gconf-helpers.c | 6 | ||||
-rw-r--r-- | src/gconf-helpers/gconf-upgrade.c | 4 | ||||
-rw-r--r-- | src/gconf-helpers/tests/fake-keyring.c | 4 | ||||
-rw-r--r-- | src/gconf-helpers/tests/test-upgrade.c | 4 |
4 files changed, 17 insertions, 1 deletions
diff --git a/src/gconf-helpers/gconf-helpers.c b/src/gconf-helpers/gconf-helpers.c index 14ed13b8..6f42f398 100644 --- a/src/gconf-helpers/gconf-helpers.c +++ b/src/gconf-helpers/gconf-helpers.c @@ -34,9 +34,13 @@ #include <gconf/gconf.h> #include <gconf/gconf-client.h> #include <glib.h> -#include <gnome-keyring.h> #include <dbus/dbus-glib.h> +/* libgnome-keyring is deprecated. */ +#include "utils.h" +NM_PRAGMA_WARNING_DISABLE("-Wdeprecated-declarations") +#include <gnome-keyring.h> + #include <nm-setting-bluetooth.h> #include <nm-setting-connection.h> #include <nm-setting-wired.h> diff --git a/src/gconf-helpers/gconf-upgrade.c b/src/gconf-helpers/gconf-upgrade.c index cbda095c..000d324c 100644 --- a/src/gconf-helpers/gconf-upgrade.c +++ b/src/gconf-helpers/gconf-upgrade.c @@ -30,7 +30,11 @@ #include <errno.h> #include <arpa/inet.h> +/* libgnome-keyring is deprecated. */ +#include "utils.h" +NM_PRAGMA_WARNING_DISABLE("-Wdeprecated-declarations") #include <gnome-keyring.h> + #include <nm-setting-connection.h> #include <nm-setting-wireless.h> #include <nm-setting-wireless-security.h> diff --git a/src/gconf-helpers/tests/fake-keyring.c b/src/gconf-helpers/tests/fake-keyring.c index d71ed82f..a08351ee 100644 --- a/src/gconf-helpers/tests/fake-keyring.c +++ b/src/gconf-helpers/tests/fake-keyring.c @@ -25,7 +25,11 @@ #include <stdarg.h> #include <glib.h> +/* libgnome-keyring is deprecated. */ +#include "utils.h" +NM_PRAGMA_WARNING_DISABLE("-Wdeprecated-declarations") #include <gnome-keyring.h> + #include "fake-keyring.h" static GSList *secrets = NULL; diff --git a/src/gconf-helpers/tests/test-upgrade.c b/src/gconf-helpers/tests/test-upgrade.c index 67d9cefc..1b6661d6 100644 --- a/src/gconf-helpers/tests/test-upgrade.c +++ b/src/gconf-helpers/tests/test-upgrade.c @@ -22,6 +22,10 @@ #include <glib.h> #include <string.h> + +/* libgnome-keyring is deprecated. */ +#include "utils.h" +NM_PRAGMA_WARNING_DISABLE("-Wdeprecated-declarations") #include <gnome-keyring.h> #include <nm-setting-wireless-security.h> |