[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] parse-datetime: avoid "%pure-parser" deprecation warning fro
From: |
Bernhard Voelker |
Subject: |
Re: [PATCH] parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4 |
Date: |
Sun, 21 Jul 2019 17:05:58 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
Hi Bruno,
On 7/20/19 12:57 AM, Bruno Haible wrote:
> Hi Berny,
>
>>> 2019-07-19 Bruno Haible <address@hidden>
>>>
>>> parse-datetime: Require Bison 2.7 or newer.
>
> Actually it requires Bison 2.4 or newer.
good spot.
>>> + case $ac_prog_version in
>>> + '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
>>> + 2.[7-9]* | [3-9].*)
>>
>> This would run into a little problem in quite far future ...... when GNU
>> Bison
>> reaches version 10.x. Maybe adjust to:
>>
>> + 2.[7-9]* | [3-9].* | [1-9][0-9].*)
Even better - thinking positive. ;-)
> Good point. We don't know how the future version numbers will look like. The
> only knowledge we have is on the version numbers of past releases.
>
> Addressed in the first patch.
>
>> During generation of parse-datetime.c, I'm getting these 2 new warnings:
>>
>> /home/berny/coreutils/./lib/parse-datetime.y:568.1-7: warning: POSIX Yacc
>> does not support %define [-Wyacc]
>> 568 | %define api.pure
>> | ^~~~~~~
>> /home/berny/coreutils/./lib/parse-datetime.y:573.1-7: warning: POSIX Yacc
>> does not support %expect [-Wyacc]
>> 573 | %expect 31
>> | ^~~~~~~
>>
>
> Addressed in the second patch.
Thanks, both patches work for me.
Have a nice day,
Berny