diff options
author | Scott Balneaves <[email protected]> | 2012-11-13 21:44:26 -0600 |
---|---|---|
committer | Scott Balneaves <[email protected]> | 2012-11-13 21:44:26 -0600 |
commit | dee0e9ab8f63d1b022a7ac011a921db48acc1cd7 (patch) | |
tree | f96d65ab4c9c2bbd8040e62f77a0bb9bc6ad9c74 /mate-session/test-inhibit.c | |
parent | 933f891732a533179682015e1d194a40293f6c9b (diff) | |
download | mate-session-manager-dee0e9ab8f63d1b022a7ac011a921db48acc1cd7.tar.bz2 mate-session-manager-dee0e9ab8f63d1b022a7ac011a921db48acc1cd7.tar.xz |
Fix all compile warnings.
Diffstat (limited to 'mate-session/test-inhibit.c')
-rw-r--r-- | mate-session/test-inhibit.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mate-session/test-inhibit.c b/mate-session/test-inhibit.c index a712449..d314d9d 100644 --- a/mate-session/test-inhibit.c +++ b/mate-session/test-inhibit.c @@ -34,6 +34,12 @@ #define SM_DBUS_PATH "/org/mate/SessionManager" #define SM_DBUS_INTERFACE "org.mate.SessionManager" +#ifdef __GNUC__ +#define UNUSED_VARIABLE __attribute__ ((unused)) +#else +#define UNUSED_VARIABLE +#endif + static DBusGConnection *bus_connection = NULL; static DBusGProxy *sm_proxy = NULL; static guint cookie = 0; @@ -73,7 +79,7 @@ do_inhibit_for_window (GdkWindow *window) { GError *error; gboolean res; - const char *startup_id; + const char UNUSED_VARIABLE *startup_id; const char *app_id; const char *reason; guint toplevel_xid; |