rsys

Basic data structures and low-level features
git clone git://git.meso-star.fr/rsys.git
Log | Files | Refs | README | LICENSE

commit c72250ab04b1663d31a285068e12655414bf24fc
parent b2fa0ba1c747b60e3c519d494b750488ce60fe92
Author: vaplv <vaplv@free.fr>
Date:   Mon, 25 Nov 2013 23:32:01 +0100

Add the unused attribute to the STATIC_ASSERT macro

Diffstat:
Msrc/rsys.h | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/rsys.h b/src/rsys.h @@ -66,7 +66,8 @@ #define ASSERT(C) assert(C) #endif -#define STATIC_ASSERT(Cond, Msg) char STATIC_ASSERT_##Msg[1 - 2*(!(Cond))] +#define STATIC_ASSERT(Cond, Msg) \ + char STATIC_ASSERT_##Msg[1 - 2*(!(Cond))] __attribute__((unused)) #define FATAL(Msg) \ { \