On Sat, 27 Oct 2012, Manuel L?pez-Ib??ez wrote:
> On 19 October 2012 18:17, Joseph S. Myers wrote:
> > On Wed, 17 Oct 2012, Manuel L?pez-Ib??ez wrote:
> >
> >> documentation but I can also implement -Wformat=0 being an alias for
> >> -Wno-format and -Wformat=1 an alias for -Wformat and simply rej
On 19 October 2012 18:17, Joseph S. Myers wrote:
> On Wed, 17 Oct 2012, Manuel López-Ibáñez wrote:
>
>> documentation but I can also implement -Wformat=0 being an alias for
>> -Wno-format and -Wformat=1 an alias for -Wformat and simply reject
>> -Wno-format=.
>
> I think that's what's wanted; -Wno
On Tue, 23 Oct 2012, Manuel López-Ibáñez wrote:
> The problem is how to represent that Wformat-y2k is enabled by
> -Wformat=X with X >= 2, while Wformat-zero-length is enabled by X >=1.
>
> One possiblity is to allow to specify a condition directly:
I guess that's reasonable.
--
Joseph S. Myer
On 19 October 2012 18:17, Joseph S. Myers wrote:
> On Wed, 17 Oct 2012, Manuel López-Ibáñez wrote:
>
>> documentation but I can also implement -Wformat=0 being an alias for
>> -Wno-format and -Wformat=1 an alias for -Wformat and simply reject
>> -Wno-format=.
>
> I think that's what's wanted; -Wno
On Wed, 17 Oct 2012, Manuel L?pez-Ib??ez wrote:
> documentation but I can also implement -Wformat=0 being an alias for
> -Wno-format and -Wformat=1 an alias for -Wformat and simply reject
> -Wno-format=.
I think that's what's wanted; -Wno-format= should be rejected, -Wformat=
should take an arbi
Bootstrapped and regression tested on x86_64-linux-gnu. Since Wformat
didn't have Var() associated, its corresponding entry was set to -1,
which is what warning(OPT_Wformat) checks for. Therefore, any such
warnings which were not guarded by if(warn_format), were enabled by
default. I only found one