w, W

Specifies the level of diagnostic messages to be generated by the compiler.

IDE Equivalent

Windows: General > Warning Level

Linux: General > Warning Level

Mac OS X: General > Warning Level

Architectures

IA-32, Intel® 64, IA-64 architectures

Syntax

Linux and Mac OS X:

-wn

Windows:

/Wn

Arguments

n

Is the level of diagnostic messages to be generated. Possible values are

0

Disables warnings; displays errors.

1

Displays warnings and errors.

2

Displays warnings and errors. This setting is equivalent to level 1 (n=1).

Default

n=1

The compiler displays warnings and errors.

Description

This option specifies the level of diagnostic messages to be generated by the compiler.

Alternate Options

None