如何通过编译器命令行禁用IBM xl C ++编译器的特定警告?

时间:2015-07-22 09:16:46

标签: c++ suppress-warnings xlc

我得到编译器消息/信息

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

并且无法通过

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

问题How to disable a specific IBM XL C++ compiler warning?

的建议

1 个答案:

答案 0 :(得分:2)

运行xlc的操作系统是什么?

尝试

-qsuppress=1500-030

或者

-w