summaryrefslogtreecommitdiff
path: root/mate-session/test-client-dbus.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-11-14 02:15:43 -0800
committerStefano Karapetsas <[email protected]>2012-11-14 02:15:43 -0800
commit6b16710b19e25ddb05f5b99f48cd4bf03d46e56a (patch)
treef96d65ab4c9c2bbd8040e62f77a0bb9bc6ad9c74 /mate-session/test-client-dbus.c
parent933f891732a533179682015e1d194a40293f6c9b (diff)
parentdee0e9ab8f63d1b022a7ac011a921db48acc1cd7 (diff)
downloadmate-session-manager-6b16710b19e25ddb05f5b99f48cd4bf03d46e56a.tar.bz2
mate-session-manager-6b16710b19e25ddb05f5b99f48cd4bf03d46e56a.tar.xz
Merge pull request #11 from sbalneav/master
All warnings fixed. Clean compile.
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;