summaryrefslogtreecommitdiff
path: root/mate-session/test-client-dbus.c
diff options
context:
space:
mode:
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;