diff options
author | Scott Balneaves <[email protected]> | 2012-12-26 21:42:10 -0600 |
---|---|---|
committer | Scott Balneaves <[email protected]> | 2012-12-26 21:42:10 -0600 |
commit | 12c23d62d0932bcecced3c2621674b89c4e6d265 (patch) | |
tree | 9cf97da4f6e957738740eb0115c03346732ff205 /src/polkitmatelistener.c | |
parent | d6c0362e70e695b1da921331f136d396d021f44c (diff) | |
download | mate-polkit-12c23d62d0932bcecced3c2621674b89c4e6d265.tar.bz2 mate-polkit-12c23d62d0932bcecced3c2621674b89c4e6d265.tar.xz |
Fix deprecations and warnings
Diffstat (limited to 'src/polkitmatelistener.c')
-rw-r--r-- | src/polkitmatelistener.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/polkitmatelistener.c b/src/polkitmatelistener.c index d70836f..1b7c486 100644 --- a/src/polkitmatelistener.c +++ b/src/polkitmatelistener.c @@ -27,6 +27,12 @@ #include "polkitmatelistener.h" #include "polkitmateauthenticator.h" +#ifdef __GNUC__ +#define UNUSED_VARIABLE __attribute__ ((unused)) +#else +#define UNUSED_VARIABLE +#endif + struct _PolkitMateListener { PolkitAgentListener parent_instance; @@ -67,7 +73,7 @@ polkit_mate_listener_init (PolkitMateListener *listener) static void polkit_mate_listener_finalize (GObject *object) { - PolkitMateListener *listener; + PolkitMateListener UNUSED_VARIABLE *listener; listener = POLKIT_MATE_LISTENER (object); |