bug-bison
[Top][All Lists]
Advanced

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

Re: bison-2.6.4-generated parser triggers pragma warnings in GCC 4.6.3


From: Paul Eggert
Subject: Re: bison-2.6.4-generated parser triggers pragma warnings in GCC 4.6.3
Date: Mon, 29 Oct 2012 09:34:13 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1

On 10/29/2012 01:03 AM, Akim Demaille wrote:
> So you are suggesting something different now, right?

Yes.

> Something like "%define initialize_yyllval_and_yylloc" if I
> understand correctly (and translate into something dealt with
> by Bison rather than CPP).

I hadn't been thinking of it as anything requiring a directive
at the Bison level.  I was thinking only of a macro that one
defines at the C level, to disable the warnings.  I suppose
that it could be mapped into a Bison directive too, though, if
that's convenient.

You can see an example of what I'm talking about by looking at
the coreutils source and seeing the C code that uses
"#ifdef lint" or "defined lint".



reply via email to

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