Clang doesn't like parentheses around _Static_assert() macro.

Signed-off-by: Taras Kondratiuk <[email protected]>
---
 include/odp/api/debug.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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
 
-- 
1.9.1


_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to