summaryrefslogtreecommitdiff
path: root/mate-session/test-client-dbus.c
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2012-11-13 21:44:26 -0600
committerScott Balneaves <[email protected]>2012-11-13 21:44:26 -0600
commitdee0e9ab8f63d1b022a7ac011a921db48acc1cd7 (patch)
treef96d65ab4c9c2bbd8040e62f77a0bb9bc6ad9c74 /mate-session/test-client-dbus.c
parent933f891732a533179682015e1d194a40293f6c9b (diff)
downloadmate-session-manager-dee0e9ab8f63d1b022a7ac011a921db48acc1cd7.tar.bz2
mate-session-manager-dee0e9ab8f63d1b022a7ac011a921db48acc1cd7.tar.xz
Fix all compile warnings.
Diffstat (limited to 'mate-session/test-client-dbus.c')
-rw-r--r--mate-session/test-client-dbus.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mate-session/test-client-dbus.c b/mate-session/test-client-dbus.c
index ab9c0a7..fa888ed 100644
--- a/mate-session/test-client-dbus.c
+++ b/mate-session/test-client-dbus.c
@@ -35,6 +35,12 @@
#define SM_CLIENT_DBUS_INTERFACE "org.mate.SessionManager.ClientPrivate"
+#ifdef __GNUC__
+#define UNUSED_VARIABLE __attribute__ ((unused))
+#else
+#define UNUSED_VARIABLE
+#endif
+
static DBusGConnection *bus_connection = NULL;
static DBusGProxy *sm_proxy = NULL;
static char *client_id = NULL;
@@ -72,7 +78,7 @@ on_client_query_end_session (DBusGProxy *proxy,
{
GError *error;
gboolean is_ok;
- gboolean res;
+ gboolean UNUSED_VARIABLE res;
const char *reason;
is_ok = FALSE;