summaryrefslogtreecommitdiff
path: root/mate-session/mdm-signal-handler.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/mdm-signal-handler.c
parent933f891732a533179682015e1d194a40293f6c9b (diff)
downloadmate-session-manager-dee0e9ab8f63d1b022a7ac011a921db48acc1cd7.tar.bz2
mate-session-manager-dee0e9ab8f63d1b022a7ac011a921db48acc1cd7.tar.xz
Fix all compile warnings.
Diffstat (limited to 'mate-session/mdm-signal-handler.c')
-rw-r--r--mate-session/mdm-signal-handler.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mate-session/mdm-signal-handler.c b/mate-session/mdm-signal-handler.c
index 9f2ab3c..bded104 100644
--- a/mate-session/mdm-signal-handler.c
+++ b/mate-session/mdm-signal-handler.c
@@ -44,6 +44,12 @@
#define MDM_SIGNAL_HANDLER_GET_PRIVATE(o) \
(G_TYPE_INSTANCE_GET_PRIVATE((o), MDM_TYPE_SIGNAL_HANDLER, MdmSignalHandlerPrivate))
+#ifdef __GNUC__
+#define UNUSED_VARIABLE __attribute__ ((unused))
+#else
+#define UNUSED_VARIABLE
+#endif
+
typedef struct {
int signal_number;
MdmSignalHandlerFunc func;
@@ -254,7 +260,7 @@ static void mdm_signal_handler_backtrace(void)
static void signal_handler(int signo)
{
static int in_fatal = 0;
- int ignore;
+ int UNUSED_VARIABLE ignore;
guchar signo_byte = signo;
/* avoid loops */