Werror

Changes a warning to an error.

IDE Equivalent

Windows: None

Linux: Compilation Diagnostics > Treat Warnings As Errors

Mac OS: Diagnostics > Treat Warnings As Errors

Architectures

IA-32 architecture, Intel® 64 architecture, IA-64 architecture

Syntax

Linux and Mac OS: -Werror
Windows:    SeeWX

Arguments

None

Default

OFF      The compiler returns diagnostics as usual.

Description

This option tells the compiler to report warnings as errors.

Alternate Options