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 c561007 commit 0b10177Copy full SHA for 0b10177
tools/objtool/check.c
@@ -4753,22 +4753,15 @@ int check(struct objtool_file *file)
4753
if (!ret && !warnings)
4754
return 0;
4755
4756
+ if (opts.werror && warnings)
4757
+ ret = 1;
4758
+
4759
if (opts.verbose) {
4760
if (opts.werror && warnings)
4761
WARN("%d warning(s) upgraded to errors", warnings);
4762
print_args();
4763
disas_warned_funcs(file);
4764
}
4765
- /*
- * CONFIG_OBJTOOL_WERROR upgrades all warnings (and errors) to actual
- * errors.
4766
- *
4767
- * Note that even fatal errors don't yet actually return an error
4768
- * without CONFIG_OBJTOOL_WERROR. That will be fixed soon-ish.
4769
- */
4770
- if (opts.werror)
4771
- return 1;
4772
-
4773
- return 0;
+ return ret;
4774
0 commit comments