commit | d8009a1ca6607bfe08978476ae2c77679b2b5453 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Aug 31 10:52:25 2022 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Aug 31 10:53:53 2022 +0200 |
tree | 610f66a600159e355016d3a1413c2117e56527f4 | |
parent | 3ff96103569d911f264563207d1825ad5b6d5616 [diff] |
BUILD: debug: make sure debug macros are never empty As outlined in commit f7ebe584d7 ("BUILD: debug: Add braces to if statement calling only CHECK_IF()"), the BUG_ON() family of macros is incorrectly defined to be empty when debugging is disabled, and that can lead to trouble. Make sure they always fall back to the usual "do { } while (0)". This may be backported to 2.6 if needed, though no such issue was met there to date.