suppress

Applies to C Applies to C++

Purpose

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

Syntax


Syntax Diagram

Syntax Notes:

  1. C compilations
  2. C++ compilations

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 References

Compiler Command Line Options
halt
ipa IBM Copyright 2003