Re: [PR c/52952] More precise locations for Wformat

2014-08-18 Thread Joseph S. Myers
On Fri, 15 Aug 2014, Manuel L?pez-Ib??ez wrote: > Hi, > > This patch moves the location of various Wformat warnings from > pointing to the first character of the function name (such as printf) > to the actual format string. This is specially useful when you have > something like > > printf (cond

Re: [PR c/52952] More precise locations for Wformat

2014-08-15 Thread Manuel López-Ibáñez
I should have pointed out that this is based on a preliminary patch by Steven attached to PR 52952. I will update the Changelog to reflect this when committing. Cheers, Manuel. On 15 August 2014 15:51, Manuel López-Ibáñez wrote: > Hi, > > This patch moves the location of various Wformat warnin

[PR c/52952] More precise locations for Wformat

2014-08-15 Thread Manuel López-Ibáñez
Hi, This patch moves the location of various Wformat warnings from pointing to the first character of the function name (such as printf) to the actual format string. This is specially useful when you have something like printf (cond ? "format 1" : "format 2"); It also moves (some) of the warning