mpt.h: macro parenthesization
Build with gcc -Wint-in-bool-context revealed a macro parenthesization error (invoking mpt_lprt with a ternary expression for level). Reviewed by: markj Approved by: markj (mentor) Sponsored by: Dell EMC Isilon Differential revision: https://reviews.freebsd.org/D11412
This commit is contained in:
parent
fb0e3235ea
commit
5a62cbcaad
@ -932,14 +932,14 @@ enum {
|
||||
|
||||
#define mpt_lprt(mpt, level, ...) \
|
||||
do { \
|
||||
if (level <= (mpt)->verbose) \
|
||||
if ((level) <= (mpt)->verbose) \
|
||||
mpt_prt(mpt, __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
||||
#if 0
|
||||
#define mpt_lprtc(mpt, level, ...) \
|
||||
do { \
|
||||
if (level <= (mpt)->verbose) \
|
||||
if ((level) <= (mpt)->verbose) \
|
||||
mpt_prtc(mpt, __VA_ARGS__); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user