summaryrefslogtreecommitdiff
path: root/mate-session/mdm-signal-handler.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/mdm-signal-handler.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/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 */