Werror, WX

Changes all warnings to errors.

IDE Equivalent

Windows: General > Treat Warnings As Errors

Linux: Compilation Diagnostics > Treat Warnings As Errors

Mac OS X: Diagnostics > Treat Warnings As Errors

Architectures

IA-32, Intel® 64 architectures

Syntax

Linux and Mac OS X:

-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 Mac OS X: -diag-error warn

Windows: /Qdiag-error:warn


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.