Fix JERRY_STATIC_ASSERT: add __unused attribute to defined type.

This commit is contained in:
Ruben Ayrapetyan
2014-07-09 19:03:42 +04:00
parent 3f39a50cc8
commit 0163425208
+1 -1
View File
@@ -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.