禁用gcc的选项`note:`s

时间:2017-08-15 17:58:58

标签: gcc compiler-errors compiler-warnings

有没有办法禁用gcc note:。通过笔记我的意思是当你收到错误或警告时,gcc会给你一些关于它的额外信息。所以这个选项会缩短

test.c:3:0: warning: "FOO" redefined
#define FOO 2

test.c:2:0: note: this is the location of the previous definition
#define FOO 1

test.c:3:0: warning: "FOO" redefined
#define FOO 2

当错误更加明确并且跳过它们会很方便时,我偶尔会得到note:的隔离墙

0 个答案:

没有答案