-w

Category

Listings, messages, and compiler information

Pragma equivalent

None.

Purpose

Suppresses informational, language-level and warning messages.

This option is equivalent to specifying -qflag=e : e.

Syntax

Read syntax diagramSkip visual syntax diagram
>>- -w---------------------------------------------------------><

Defaults

All informational and warning messages are reported.

Usage

Informational and warning messages that supply additional information to a severe error are not disabled by this option.

Predefined macros

None.

Examples

To compile myprogram.c so that no warning messages are displayed, enter:
xlc myprogram.c -w

Related information