On 11/24/20 8:09 PM, Martin Sebor via Gcc-patches wrote:
The attached patch cleans up most remaining -Wformat-diag instances
in an x86_64-build.  I tried to minimize using #pragma diagnostic
so I tweaked the code instead.  A preferable solution might be to
introduce a new format attribute and used it to exempt the pp_printf()
and verbatim() functions from some of the -Wformat-diag checks but that
would require more surgery on the warning code than I think is called
for at this point.

Tested by bootstrapping all of the languages below (same set I test
all my patches with) and regtesting:
   ada,brig,c,c++,d,fortran,jit,lto,objc,obj-c++

OK.

Reply via email to