‑‑warnings_are_errors
In this section:
Syntax
‑‑warnings_are_errors
Description
Use this option to make the compiler treat all warnings as errors. If the compiler encounters an error, no object code is generated. Warnings that have been changed into remarks are not treated as errors.
Note
Any diagnostic messages that have been reclassified as warnings by the option ‑‑diag_warning or the #pragmadiag_warning directive will also be treated as errors when ‑‑warnings_are_errors is used.
See also
Caution
Project>Options>C/C++ Compiler>Diagnostics>Treat all warnings as errors