summaryrefslogtreecommitdiff
path: root/maximus/xutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'maximus/xutils.c')
-rw-r--r--maximus/xutils.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/maximus/xutils.c b/maximus/xutils.c
index f131f81..4e79569 100644
--- a/maximus/xutils.c
+++ b/maximus/xutils.c
@@ -27,6 +27,12 @@
#include <stdio.h>
#include <libmatewnck/libmatewnck.h>
+#ifdef __GNUC__
+#define UNUSED_VARIABLE __attribute__ ((unused))
+#else
+#define UNUSED_VARIABLE
+#endif
+
void
_matewnck_error_trap_push (void)
{
@@ -64,7 +70,7 @@ _matewnck_get_wmclass (Window xwindow,
char **res_name)
{
XClassHint ch;
- char *retval;
+ char UNUSED_VARIABLE *retval;
_matewnck_error_trap_push ();