[Bug analyzer/106741] suspicious %qE related warning when building gcc
jbeulich at suse dot com
gcc-bugzilla@gcc.gnu.org
Fri Aug 26 07:32:43 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106741
--- Comment #3 from jbeulich at suse dot com ---
If I'm reading the log right, it's stages 2 and 3 where the warnings appear,
while stage 1 (using gcc10) don't expose such a warning. Interestingly the
warnings do appear (once) when doing cross builds (again using gcc10) - do
stage1 builds have more warnings suppressed than (single-stage) cross builds?
There also was no such warning when building 12.1.0.
I guess this (in gcc/analyzer/analyzer.h) might matter:
/* Disable -Wformat-diag; we want to be able to use pp_printf
for logging/dumping without complying with the rules for diagnostics. */
#if __GNUC__ >= 10
#pragma GCC diagnostic ignored "-Wformat-diag"
#endif
This does neither suppress -Wformat= nor -Wformat-extra-args.
More information about the Gcc-bugs
mailing list