|
From: <sv...@va...> - 2015-04-04 18:43:19
|
Author: florian
Date: Sat Apr 4 19:43:11 2015
New Revision: 3118
Log:
Tweak STATIC_ASSERT such that there is no warning about an unused
variable when used at block scope.
Modified:
trunk/priv/main_util.h
Modified: trunk/priv/main_util.h
==============================================================================
--- trunk/priv/main_util.h (original)
+++ trunk/priv/main_util.h Sat Apr 4 19:43:11 2015
@@ -51,7 +51,8 @@
#endif
// Poor man's static assert
-#define STATIC_ASSERT(x) extern int vex__unused_array[(x) ? 1 : -1]
+#define STATIC_ASSERT(x) extern int vex__unused_array[(x) ? 1 : -1] \
+ __attribute__((unused))
/* Stuff for panicking and assertion. */
|