warning_errors

Controls whether or not warnings are treated as errors.

Syntax

#pragma warning_errors on | off | reset

Targets
All platforms.
Remarks
If you enable this pragma, the compiler treats all warnings as though they were errors and does not translate your file until you resolve them.
This pragma corresponds to the Treat All Warnings As Errors setting in the C/C++ Warnings panel. To check this setting, use __option (warning_errors), described in Checking Settings.