diff mbox

[XTF] properly parenthesize BUILD_BUG_ON()'s parameter use

Message ID 58E66B98020000780014E070@prv-mh.provo.novell.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jan Beulich April 6, 2017, 2:23 p.m. UTC
Signed-off-by: Jan Beulich <jbeulich@suse.com>
properly parenthesize BUILD_BUG_ON()'s parameter use

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/include/xtf/lib.h
+++ b/include/xtf/lib.h
@@ -29,7 +29,7 @@ void __noreturn panic(const char *fmt, .
     } while ( 0 )
 
 #define BUILD_BUG_ON(cond)                              \
-    _Static_assert(!cond, "!(" #cond ")")
+    _Static_assert(!(cond), "!(" #cond ")")
 
 #define min(a, b)                                       \
     ({                                                  \

Comments

Andrew Cooper April 6, 2017, 2:27 p.m. UTC | #1
On 06/04/17 15:23, Jan Beulich wrote:
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> and committed. 
Thanks.
diff mbox

Patch

--- a/include/xtf/lib.h
+++ b/include/xtf/lib.h
@@ -29,7 +29,7 @@  void __noreturn panic(const char *fmt, .
     } while ( 0 )
 
 #define BUILD_BUG_ON(cond)                              \
-    _Static_assert(!cond, "!(" #cond ")")
+    _Static_assert(!(cond), "!(" #cond ")")
 
 #define min(a, b)                                       \
     ({                                                  \