我在 Linux 上使用 gcc 4.1.2,遇到以下警告:
warning: type qualifiers ignored on function return type
我尝试使用“-Wno-ignored-qualifiers”来消除此警告,但似乎不受支持:
cc1: error: unrecognized command line option "-Wno-ignored-qualifiers"
有没有办法在 gcc 4.1.2 中禁用此类警告?
非常感谢。
最佳答案
找到了解决方案。使用:
-Wno-return-type
关于c - 警告 : type qualifiers ignored on function return type in gcc 4. 1.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15396083/