We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb62243 commit a307dd2Copy full SHA for a307dd2
tools/objtool/include/objtool/warn.h
@@ -43,8 +43,10 @@ static inline char *offstr(struct section *sec, unsigned long offset)
43
44
#define WARN(format, ...) \
45
fprintf(stderr, \
46
- "%s: warning: objtool: " format "\n", \
47
- objname, ##__VA_ARGS__)
+ "%s: %s: objtool: " format "\n", \
+ objname, \
48
+ opts.werror ? "error" : "warning", \
49
+ ##__VA_ARGS__)
50
51
#define WARN_FUNC(format, sec, offset, ...) \
52
({ \
0 commit comments