WX

Changes a warning to an error.

IDE Equivalent

Windows: C/C++ > General > Treat Warnings As Errors

Linux: None

Mac OS: None

Architectures

IA-32, IntelŪ EM64T, IntelŪ ItaniumŪ architecture

Syntax

Linux and Mac OS: See Werror.
Windows:    /WX

Arguments

None

Default

OFF      The compiler returns diagnostics as usual.

Description

This option tells the compiler to report warnings as errors.

Alternate Options