‑‑warnings_are_errors
In this section:
Syntax
‑‑warnings_are_errors
Description
Use this option to make the linker treat all warnings as errors. If the linker encounters an error, no executable image 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 will also be treated as errors when ‑‑warnings_are_errors is used.
See also
‑‑diag_warning and ‑‑diag_warning.
Caution
Project>Options>Linker>Diagnostics>Treat all warnings as errors