diff --git a/core/include/assert.h b/core/include/assert.h index 21ed84ab14..b4ce8f0754 100644 --- a/core/include/assert.h +++ b/core/include/assert.h @@ -119,7 +119,7 @@ NORETURN void _assert_failure(const char *file, unsigned line); * Generates a division by zero compile error when cond is false */ #define static_assert(cond, ...) \ - enum { static_assert_failed_on_div_by_0 = 1 / (!!(cond)) } + { enum { static_assert_failed_on_div_by_0 = 1 / (!!(cond)) }; } #endif #endif