Compiler Warnings provide compile time warnings for…
Warnings are just that – warnings. A project with warnings will run just fine.
Showing warnings can be enabled and disabled at the project level. At a more advanced level, you can also control warnings as the file or code level. The Studio shows the warnings in the output panel. This makes it easy to jump to the code in question.
The Project Properties dialog has a new checkbox to Suppress Compiler Warnings.
The #WARNING command causes compiler to output a warning. This is non-fatal and the application will compile. The syntax is
#warning ErrorNum “error text”
...just like the #error command.
You can use this new compiler command in your code to add your own warnings.
There are two commands to control the behavior of various warnings.
CompilerWarnings Off|On|Suspend|Restart
This lets you control the entire warning system.
The warning system allows these commands to be nested. Each level of nesting increments an internal warnings-off counter, which will not be re-enabled until that count goes to 0. Think of it as Lock/Unlock.
CompilerLevelWarning All | AmbiguousFunctions | General | IfExp | IfLine | Item | Unicode On | Off
This is an advanced command that gives you some control over how strict your warning checking should be. By default, AmbiguousFunctions, General and Unicode are On and IfExp, IfLine and Item are off. Not all compiler warnings are optional like this, warnings that are borderline errors (like the use of ambiguous functions can only be turned off if warnings are turned off (with the CompilerWarnings command or the Suppress Compiler Warning project property.
CompilerLevelWarning All On