On Tue, 23 Aug 2016, Martin Sebor wrote: > The attached patch refines the logic used to suggest the format > attribute to filter out functions that use string literals and > constants as formats. > > This change has the effect of not suggesting the attribute for > functions like the one below (since the attribute couldn't very > be used with it): > > void g (char *d, __builtin_va_list va) > { > vsprintf (d, "%i", va); > } > > I started seeing the warnings after my recent changes to the > Wformat-length patch and couldn't find a good way to suppress > them other than via #pragma GCC diagnostic.
OK. -- Joseph S. Myers jos...@codesourcery.com