-qsuppress

Description

Prevents the specified compiler or driver informational or warning messages from being displayed or added to the listings.

Syntax

Read syntax diagramSkip visual syntax diagram>>- -q--+-suppress--+----------------+------+------------------><
        |           |    .-:-------. |      |
        |           |    V         | |      |
        |           '-=----msg_num-+-'      |
        |  (1)                              |
        +--------nosuppress-----------------+
        |                       .-:-------. |
        |  (2)                  V         | |
        '--------nosuppress--=----msg_num-+-'

Notes:
  1. C only
  2. C++ only

Notes

This option suppresses compiler messages only, and has no effect on linker or operating system messages.

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

Compiler messages that cause compilation to stop, such as (S) and (U) level messages, or other messages depending on the setting of the -qhalt compiler option, cannot be suppressed. For example, if the -qhalt=w compiler option is set, warning messages will not be suppressed by the -qsuppress compiler option.

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

Example

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