diff options
-rw-r--r-- | system_wrappers/interface/compile_assert.h | 2 | ||||
-rw-r--r-- | typedefs.h | 11 |
2 files changed, 1 insertions, 12 deletions
diff --git a/system_wrappers/interface/compile_assert.h b/system_wrappers/interface/compile_assert.h index 46e40ac4..a075184b 100644 --- a/system_wrappers/interface/compile_assert.h +++ b/system_wrappers/interface/compile_assert.h @@ -41,7 +41,7 @@ struct CompileAssert { }; #define COMPILE_ASSERT(expr, msg) \ - typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1] ALLOW_UNUSED + typedef CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1] #endif // __cplusplus >= 201103L #endif // !defined(COMPILE_ASSERT) @@ -96,17 +96,6 @@ typedef unsigned __int64 uint64_t; #define OVERRIDE #endif -// Annotate a variable indicating it's ok if the variable is not used. -// (Typically used to silence a compiler warning when the assignment -// is important for some other reason.) -// Use like: -// int x ALLOW_UNUSED = ...; -#if defined(__GNUC__) -#define ALLOW_UNUSED __attribute__((unused)) -#else -#define ALLOW_UNUSED -#endif - // Annotate a function indicating the caller must examine the return value. // Use like: // int foo() WARN_UNUSED_RESULT; |