[Bug c++/104148] [11/12 Regression] -Wformat warning no longer warns about () wrapped args since r11-2457

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 20 19:49:05 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104148

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 52247
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52247&action=edit
gcc12-pr104148.patch

I guess I could use opt_code instead of bool, but
1) I think we still want not to bother with warning_suppressed_p at all for
-Wformat*, for one there are various warning options affected, and as I said,
it isn't warning at all, it is looking for the argument value
2) passing that for -Wnonnull is deferred for later


More information about the Gcc-bugs mailing list