-warningerror

Controls whether or not warnings are treated as errors.

Syntax
  -warningerror [on | off]
Remarks

If you enable this option, the compiler treats all warning messages as though they were errors and does not translate your file until you resolve them.

Related information
-disassemble
-help
-maxerrors
-maxwarnings
-msgstyle
-ide_err
-nofail
-progress
-S
-stderr
-verbose
-version
-timing
-warnings
-wraplines