Tells the compiler to treat unknown compiler options on Linux* as a warning instead of an error.
Linux: | -qunknown-option-as-warning -qno-unknown-option-as-warning |
Windows: | None |
None
-qno-unknown-option-as-warning |
When unknown compiler options are encountered on Linux, the compiler emits diagnostic errors. |
This option tells the compiler to treat unknown compiler options on Linux as a warning instead of an error.
If qno-unknown-option-as-warning is specified, unknown compiler options on Linux are treated as errors.
This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.
None
The following shows an unknown compiler option in the command line:
icpx -qunknown-option-as-warning -fbad-opt file.cpp
In this case, the compiler will issue this diagnostic:
icpx: warning: unknown argument ignored: '-fbad-opt' [-Wunknown-argument]