c - 警告 : type qualifiers ignored on function return type in gcc 4. 1.2

标签 c linux gcc

我在 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/

相关文章:

c - 在 unsigned int 中搜索位模式

regex - 有趣的正则表达式替换 3 位数字,同时在同一行中保留其他 3 位数字

java - 在 Vim 中编码 java 时,如何在编辑时直接在 vim 中显示代码输出

Linux:调试信息格式 "stabs"英文缩写是什么?

c - __builtin_apply 用于在 gcc 中构造调用的大小参数?

计算数字、空格和其他字符

c - 为什么当我使用 64 位局部变量时堆栈指针没有减少?

linux - 用 shell 打印特定行的最快方法是什么?

c - 为什么会出现 C malloc 断言失败?

node.js - 在armv7上编译armv7的nodejs 10.36