Re: Bison 3.0 updates - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Bison 3.0 updates
Date
Msg-id 53862C2A.1090605@gmx.net
Whole thread Raw
In response to Re: Bison 3.0 updates  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Bison 3.0 updates
List pgsql-hackers
On 5/21/14, 12:29 PM, Tom Lane wrote:
> Vik Fearing <vik.fearing@dalibo.com> writes:
>> I'm getting some more of these, including some I thought you had fixed.
>> Bison 3.0.2 on current head.
> 
> I didn't do anything to suppress those warnings:
> 
>> gram.y:172.1-13: warning: deprecated directive, use ‘%name-prefix’
>> [-Wdeprecated]
>>  %name-prefix="base_yy"
>>  ^^^^^^^^^^^^^
> 
> because it's hard to see how that's anything but a bison bug.

What they want is that you use
   %name-prefix "base_yy"

instead of
   %name-prefix="base_yy"

That makes the warning go away.

The %something=something syntax is not documented anywhere, so it looks
like it worked more or less by accident.  We don't use it anywhere else
either (e.g. %expect 0, not %expect=0).




pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Re-create dependent views on ALTER TABLE ALTER COLUMN ... TYPE?
Next
From: Tom Lane
Date:
Subject: Re: Bison 3.0 updates