Error when parsing precompiled header:macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
My code includes some macro expand to "defined", then fauxpas make the following error message:
Error when parsing precompiled header:macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined].
I have tried calling fauxpas using params as below: --extraCompilerArgs OTHER_CFLAGS="-Wno-expansion-to-defined"
but then fauxpas failed to check codes. What is the right way to add compiler arguments like -Wno-expansion-to-defined?
Comments (4)
-
repo owner -
reporter When using like this: --extraCompilerArgs -Wno-expansion-to-defined
The following errors:
Argument error: ERROR: Argument --extraCompilerArgs needs a value Argument error: ERROR: Unknown argument: -Wno-expansion-to-defined Determining build settings for 2 targets and 2 build configurations
-
I figured out the correct syntax it should be
--extraCompilerArgs \-Wno-expansion-to-defined
-
No, it's wrong.
-c <configuration file>
is the only way for it to work. - Log in to comment
Thanks for reporting this.
Can you please verify whether this issue persists for you with the latest version (1.7.1) ?
When using the
--extraCompilerArgs
option, insert the compiler flag directly there, like this:not like this: