Tells the compiler to check only for correct syntax.
None
IA-32, IntelŪ EM64T, IntelŪ ItaniumŪ architecture
Linux: | -syntax-only -nosyntax-only |
Windows: | /syntax-only /nosyntax-only |
None
OFF | Normal compilation is performed. |
This option tells the compiler to check only for correct syntax. It lets you do a quick syntax check of your source file.
Compilation stops after the source file has been parsed. No code is generated, no object file is produced, and some error checking done by the optimizer is bypassed.
Warnings and messages appear on stderr.
Linux: -syntax_only, -y, -syntax (this is a
deprecated
option)
Windows: /Zs, /syntax_only