Search code examples
c++suppress-warningsxlc

How to disable a specific warning of IBM xl C++ compiler via compiler commandline?


I get compiler message/information

1500-030: (I) INFORMATION: ... Additional optimization may be attained by recompiling and specifying MAXMEM option with a value greater than 8192.

and it cannot be turned off by

#pragma report(disable, "1500-030")

as suggested by question How to disable a specific IBM XL C++ compiler warning?


Solution

  • What OS is xlc running on?

    Try

    -qsuppress=1500-030
    

    Or

    -w