From: Florian Krohm Date: Sat, 4 Apr 2015 18:43:11 +0000 (+0000) Subject: Tweak STATIC_ASSERT such that there is no warning about an unused X-Git-Tag: svn/VALGRIND_3_11_0^2~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98a9f0c2c5126a2dae32d1765d516e3392f892b3;p=thirdparty%2Fvalgrind.git Tweak STATIC_ASSERT such that there is no warning about an unused variable when used at block scope. git-svn-id: svn://svn.valgrind.org/vex/trunk@3118 --- diff --git a/VEX/priv/main_util.h b/VEX/priv/main_util.h index 4dcdd946d9..018ba4fdeb 100644 --- a/VEX/priv/main_util.h +++ b/VEX/priv/main_util.h @@ -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. */