Compiler Warnings
Purpose
To control the Compiler Warning system.
Unlike compiler errors, compiler warnings are not fatal to compilation but allow the addition of informative messages for developers.
Syntax
CompilerWarnings {option}
Where {option} is one of:
- Off – Disables compiler warnings until they are re-enabled.
- On – Re-enables compiler warnings.
- Suspend – Disables compiler warnings until the end of the current file.
- Restart – Unconditionally turns compiler warnings back on.
What It Does
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.
See Also
- CompilerLevelWarning allows control of specific compiler warnings.
- The #Warning compiler directive allows the addition of a compiler warning to code.