c++ - GCC compiler warning flag for zero variadic macro arguments -


what compiler warning flag 0 variadic macro arguments in gcc (i using gcc 5.3.0)?

the warning triggered code this

// illustration purposes only: int foo(int i) { return 0; }; #define foo(a, ...) foo(a, ##__va_args__) foo(1);       ^  warning: iso c++11 requires @ least 1 argument "..." in variadic macro 

but warning doesn't indicate flag used enable/disable warning (this typically shown in square brackets [-wwarning-flag-name]).

in clang -wgnu-zero-variadic-macro-arguments. haven't been able find in warning documentation of gcc-5.3.0.

i've tried -wgnu-zero-variadic-macro-arguments, -wvarargs, -wno-variadic-macros (thanks @ revolver_ocelot) none of these in charge of warning.

the warning flag causing issue -wpedantic. because omitting variadic arguments illegal , requires diagnostic. warning satisfies requirement.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -