option to disable gcc `note:`s

Viewed 2487

Is there a way to disable gcc note:s. By notes I mean when you get an error or warning and gcc gives you some extra information about it. So this option would shorten

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

to just

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

I'll occasionally get a wall of note:s when just an the error would be more clear and it would be convenient to skip over them

0 Answers
Related