Specifies the level of diagnostic messages to be generated by the compiler.
Linux: | -wn |
Windows: | /Wn |
n |
Is the level of diagnostic messages to be generated. Possible values are:
|
n=1 |
The compiler displays diagnostics for warnings and errors. |
This option specifies the level of diagnostic messages to be generated by the compiler.
On Windows systems, option /W4 is equivalent to option /Wall.
The -wn, /Wn, and Wall options can override each other. The last option specified on the command line takes precedence.
Visual Studio: General > Warning Level
Eclipse: General > Warning Level
None