suppress

Option Type Default Value #pragma options C C++
-qoption nosuppress   x x

Syntax

     -qsuppress=nnnn-mmm[:nnnn-mmm...] | -qnosuppress 
 
    -qsuppress=nnnn-mmm[:nnnn-mmm...] | -qnosuppress=nnnn-mmm[:nnnn-mmm...] 
   

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

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

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

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:

"t.c", line 1.1:1506-224 (I) Incorrect #pragma ignored

You can suppress the message by compiling with:

xlC myprogram.c -qsuppress=1506-224


List of Batch Compiler Options and Their Defaults
Equivalent Batch Compile-Link and Incremental Build Options