有没有办法禁用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:
的隔离墙