summaryrefslogtreecommitdiff
path: root/src/common.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.hh')
-rw-r--r--src/common.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common.hh b/src/common.hh
index 67c8fa5..95abcaa 100644
--- a/src/common.hh
+++ b/src/common.hh
@@ -7,10 +7,10 @@
# include "config.h"
#endif
-#if HAVE_VAR_ATTRIBUTE_UNUSED
+#if HAVE_VAR_ATTRIBUTE_UNUSED && !defined(__GNUG__)
# define UNUSED(x) __attribute__((unused)) x ## _unused
#else
-# define UNUSED(x) x ## _unused
+# define UNUSED(x) /* x ## _unused */
#endif
#include <cassert>