Developer Guide and Reference

Contents

Werror, WX

Changes all warnings to errors.

Syntax

Linux:
-Werror
macOS:
-Werror
Windows:
/WX
Arguments
None
Default
OFF
The compiler returns diagnostics as usual.
Description
This option changes all warnings to errors.
Alternate Options
Linux and
macOS*
:
-diag-error warn
Windows:
/Qdiag-error:warn