Re: [PATCH] avoid -Wmissing-format-attribute for functions that use literal formats

2016-08-29 Thread Joseph Myers
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 (si

[PATCH] avoid -Wmissing-format-attribute for functions that use literal formats

2016-08-23 Thread Martin Sebor
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):