How to silence #pragma messages from GCC

2019-07-16 01:54发布

问题:

I am not interested in seeing #pragma messages for my automatic build. It just clutters the output.

I tell this to Clang by passing -Wno-#pragma-messages. However, GCC do not understand that flag and I can not find any similar flag.

How do I ask GCC to ignore #pragma message?