bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] build: avoid printf format mismatch warnings


From: Jim Meyering
Subject: Re: [PATCH] build: avoid printf format mismatch warnings
Date: Tue, 29 Sep 2009 19:00:40 +0200

Joel E. Denny wrote:

> On Tue, 29 Sep 2009, Jim Meyering wrote:
>
>> Joel E. Denny wrote:
>> > On Tue, 29 Sep 2009, Jim Meyering wrote:
>> >> I tried to bootstrap/build "master" today, without
>> >> success, so switched to branch-2.5.  There, ./bootstrap
>> >> succeeded, but the build failed with two like this:
>> >>
>> >>   Sbitset.c: In function 'Sbitset__fprint':
>> >>   Sbitset.c:75: error: format '%d' expects type 'int', but argument 3
>> >>     has type 'Sbitset__Index
>> >
>> > Thanks for the report.  I'm not seeing those failures with either gcc
>> > 4.2.4 or 4.3.4.  Which gcc are you using?
>>
>> Hi Joel,
>>
>> I'm using the stock gcc on an up-to-date Fedora 11 system:
>>
>>   gcc version 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC)
>
> I built gcc 4.4.1 from source.  I built Bison master and branch-2.5
> (before applying the Sbitset patch) with it, but I did not see any
> failures.
>
> Is there anything else in your environment that might matter?  Do you set
> CFLAGS, for example?
>
> It would be nice to know where this is coming from so we can catch future
> problems.

I configured with --enable-gcc-warnings (of course!  doesn't everybody? ;-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]