]> xenbits.xensource.com Git - people/andrewcoop/xen-test-framework.git/commitdiff
properly parenthesize BUILD_BUG_ON()'s parameter use
authorJan Beulich <jbeulich@suse.com>
Thu, 6 Apr 2017 14:26:16 +0000 (15:26 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 6 Apr 2017 14:26:22 +0000 (15:26 +0100)
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
include/xtf/lib.h

index 634d0291463fafbeb3978e358727f5a87a29b93e..3c3022ef3c90cfac0f3c3ce02818d7e45d422723 100644 (file)
@@ -29,7 +29,7 @@ void __noreturn panic(const char *fmt, ...) __printf(1, 2);
     } while ( 0 )
 
 #define BUILD_BUG_ON(cond)                              \
-    _Static_assert(!cond, "!(" #cond ")")
+    _Static_assert(!(cond), "!(" #cond ")")
 
 #define min(a, b)                                       \
     ({                                                  \