diff options
Diffstat (limited to 'include/linux/bug.h')
-rw-r--r-- | include/linux/bug.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/bug.h b/include/linux/bug.h index 27d404f91b3e..89fb91d0c929 100644 --- a/include/linux/bug.h +++ b/include/linux/bug.h | |||
@@ -59,9 +59,10 @@ struct pt_regs; | |||
59 | extern int __build_bug_on_failed; | 59 | extern int __build_bug_on_failed; |
60 | #define BUILD_BUG_ON(condition) \ | 60 | #define BUILD_BUG_ON(condition) \ |
61 | do { \ | 61 | do { \ |
62 | ((void)sizeof(char[1 - 2*!!(condition)])); \ | 62 | bool __cond = !!(condition); \ |
63 | if (condition) __build_bug_on_failed = 1; \ | 63 | ((void)sizeof(char[1 - 2 * __cond])); \ |
64 | } while(0) | 64 | if (__cond) __build_bug_on_failed = 1; \ |
65 | } while (0) | ||
65 | #endif | 66 | #endif |
66 | 67 | ||
67 | /** | 68 | /** |