From 016342520811a44de3af1819d6d872d7e7515de4 Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Wed, 9 Jul 2014 19:03:42 +0400 Subject: [PATCH] Fix JERRY_STATIC_ASSERT: add __unused attribute to defined type. --- src/globals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/globals.h b/src/globals.h index f421c9623..dbcbbf000 100644 --- a/src/globals.h +++ b/src/globals.h @@ -55,7 +55,7 @@ typedef signed int int32_t; */ #define JERRY_STATIC_ASSERT_GLUE_( a, b ) a ## b #define JERRY_STATIC_ASSERT_GLUE( a, b ) JERRY_STATIC_ASSERT_GLUE_( a, b ) -#define JERRY_STATIC_ASSERT( x ) typedef char JERRY_STATIC_ASSERT_GLUE( static_assertion_failed_, __LINE__) [ ( x ) ? 1 : -1 ] +#define JERRY_STATIC_ASSERT( x ) typedef char JERRY_STATIC_ASSERT_GLUE( static_assertion_failed_, __LINE__) [ ( x ) ? 1 : -1 ] __unused; /** * Variable that must not be referenced.