Intel® C++ Compiler Classic Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-1B3DD4E8-36A7-46DD-B8BF-2A232177C235
Visible to Intel only — GUID: GUID-1B3DD4E8-36A7-46DD-B8BF-2A232177C235
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.
IDE Equivalent
Visual Studio: General > Treat Warnings As Errors
Eclipse: Compilation Diagnostics > Treat Warnings As Errors
Xcode: Diagnostics > Treat Warnings As Errors
Alternate Options
Linux and macOS: -diag-error warn
Windows: /Qdiag-error:warn