[PATCH] clean up more -Wformat-diag (PR 94982)

Jason Merrill jason@redhat.com
Wed Nov 25 17:37:10 GMT 2020


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.



More information about the Gcc-patches mailing list