diff mbox

[1/5] api: debug: fix static assert macro

Message ID 1423051213-20795-2-git-send-email-taras.kondratiuk@linaro.org
State New
Headers show

Commit Message

Taras Kondratiuk Feb. 4, 2015, noon UTC
Clang doesn't like parentheses around _Static_assert() macro.

Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
---
 include/odp/api/debug.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/include/odp/api/debug.h b/include/odp/api/debug.h
index 05f4e9e..6cf4e05 100644
--- a/include/odp/api/debug.h
+++ b/include/odp/api/debug.h
@@ -31,8 +31,8 @@  extern "C" {
  * _Static_assert was only added in GCC 4.6. Provide a weak replacement
  * for previous versions.
  */
-#define _Static_assert(e, s) (extern int (*static_assert_checker(void)) \
-	[sizeof(struct { unsigned int error_if_negative:(e) ? 1 : -1; })])
+#define _Static_assert(e, s) extern int (*static_assert_checker(void)) \
+	[sizeof(struct { unsigned int error_if_negative:(e) ? 1 : -1; })]
 
 #endif