-qsuppress

Category

Listings, messages, and compiler information

Pragma equivalent

#pragma report (C++ only)

Purpose

Prevents specific informational or warning messages from being displayed or added to the listing file, if one is generated.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-nosuppress--------------------------.   
        |              .-:------------------. |   
        |              V                    | |   
>>- -q--+-suppress--=----message_identifier-+-+----------------><

Defaults

-qnosuppress: All informational and warning messages are reported, unless set otherwise with the -qflag option.

Parameters

message_identifier
Represents a message identifier. The message identifier must be in the following format:
15dd-number
where:
dd
Is the two-digit code representing the compiler component that produces the message. See Compiler message format for descriptions of these.
number
Is the message number.

Usage

You can only suppress information (I) and warning (W) messages. You cannot suppress other types of messages, such as (S) and (U) level messages. Note that informational and warning messages that supply additional information to a severe error cannot be disabled by this option.

To suppress all informational and warning messages, you can use the -w option.

To suppress IPA messages, enter -qsuppress before -qipa on the command line.

The -qnosuppress compiler option cancels previous settings of -qsuppress.

Predefined macros

None.

Examples

If your program normally results in the following output:
“myprogram.c”, line 1.1:1506-224 (I) Incorrect #pragma ignored
you can suppress the message by compiling with:
xlc myprogram.c -qsuppress=1506-224

Related information