|
83 | 83 | #define ZEROERR_TRIGGER_PARENTHESIS_(...) , |
84 | 84 |
|
85 | 85 | #define ZEROERR_ISEMPTY(...) \ |
| 86 | + ZEROERR_SUPPRESS_VARIADIC_MACRO \ |
86 | 87 | _ZEROERR_ISEMPTY(/* test if there is just one argument, eventually an empty \ |
87 | 88 | one */ \ |
88 | 89 | ZEROERR_HAS_COMMA(__VA_ARGS__), /* test if ZEROERR_TRIGGER_PARENTHESIS_ \ |
|
93 | 94 | ZEROERR_HAS_COMMA(__VA_ARGS__( \ |
94 | 95 | /*empty*/)), /* test if placing it between ZEROERR_TRIGGER_PARENTHESIS_ \ |
95 | 96 | and the parenthesis adds a comma */ \ |
96 | | - ZEROERR_HAS_COMMA(ZEROERR_TRIGGER_PARENTHESIS_ __VA_ARGS__(/*empty*/))) |
| 97 | + ZEROERR_HAS_COMMA(ZEROERR_TRIGGER_PARENTHESIS_ __VA_ARGS__(/*empty*/))) \ |
| 98 | + ZEROERR_SUPPRESS_VARIADIC_MACRO_POP |
97 | 99 |
|
98 | 100 | #define ZEROERR_PASTE5(_0, _1, _2, _3, _4) _0##_1##_2##_3##_4 |
99 | 101 | #define _ZEROERR_ISEMPTY(_0, _1, _2, _3) \ |
|
227 | 229 | ZEROERR_CLANG_SUPPRESS_WARNING("-Wmissing-prototypes") \ |
228 | 230 | ZEROERR_CLANG_SUPPRESS_WARNING("-Wc++98-compat") \ |
229 | 231 | ZEROERR_CLANG_SUPPRESS_WARNING("-Wc++98-compat-pedantic") \ |
| 232 | + ZEROERR_CLANG_SUPPRESS_WARNING("-Wvariadic-macro-arguments-omitted") \ |
230 | 233 | \ |
231 | 234 | ZEROERR_GCC_SUPPRESS_WARNING_PUSH \ |
232 | 235 | ZEROERR_GCC_SUPPRESS_WARNING("-Wunknown-pragmas") \ |
|
295 | 298 |
|
296 | 299 | #define ZEROERR_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_END ZEROERR_MSVC_SUPPRESS_WARNING_POP |
297 | 300 |
|
298 | | -#define ZEROERR_SUPPRESS_VARIADIC_MACRO \ |
299 | | - ZEROERR_CLANG_SUPPRESS_WARNING_WITH_PUSH("-Wgnu-zero-variadic-macro-arguments") |
| 301 | +#define ZEROERR_SUPPRESS_VARIADIC_MACRO \ |
| 302 | + ZEROERR_CLANG_SUPPRESS_WARNING_WITH_PUSH("-Wgnu-zero-variadic-macro-arguments") \ |
| 303 | + ZEROERR_CLANG_SUPPRESS_WARNING_WITH_PUSH("-Wvariadic-macro-arguments-omitted") |
300 | 304 |
|
301 | 305 | #define ZEROERR_SUPPRESS_VARIADIC_MACRO_POP ZEROERR_CLANG_SUPPRESS_WARNING_POP |
302 | 306 |
|
|
0 commit comments