SUPPRESS | NOSUPPRESS

Category

Listings, messages and compiler information

Pragma equivalent

None.

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 diagramNOSUPPSUPP(message_identifier )

Defaults

For C, the default is NOSUPPRESS.

For C++, the default is SUPPRESS(CCN5900, CCN5922).

Parameters

message_identifier
Comma separated list of message IDs.

Usage

For C, the message ID range that is affected is CCN3000 through CCN4399.

For C++, the message ID range that is affected is CCN5001 through CCN6999, and CCN7500 through CCN8999.

Note that this option has no effect on linker or operating system messages. Compiler messages that cause compilation to stop, such as (S) and (U) level messages cannot be suppressed.

If a compilation has no (S) and (U) level messages and all the informational or warning messages are suppressed by the SUPPRESS option, the compilation return code is 0.

When you specify NOSUPPRESS with specific message identifiers, the previous SUPPRESS instances with the same message identifiers lose effect. When you specify NOSUPPRESS without specific message identifiers, all previous SUPPRESS instances lose effect. If you specify two or three of the following options, the last option has precedence:

SUPPRESS(message_identifier)
NOSUPPRESS(message_identifier)
NOSUPPRESS

IPA effects

The SUPPRESS option has the same effect on the IPA link step that it does on a regular compilation.

Predefined macros

None.