Re: Bison 3.7.5 released

Hans Ã…berg <[email protected]> Tue, 26 Jan 2021 10:30:46 +0100
Newsgroups gmane.comp.parsers.bison.bugs
Message-ID <[email protected]>
> On 26 Jan 2021, at 06:54, Paul Eggert <[email protected]> wrote:
> 
> On 1/25/21 9:41 PM, Akim Demaille wrote:
> 
>> Thanks for the report.  I'll see if there is interest in fixing it
>> in gnulib.  As a matter of fact, they might have fixed it already,
> 
> Fixed by Jim Meyering in Gnulib commit 7fa203018d02d8f2b71a6be1240c3963a63cab1c (2020-12-29).
> 
> In the meantime you can ignore the warning: it's the typical clang balderdash where they want you to put in an unnecessary cast. Don't they know that casts are bad in C?

They want the C/C++ languages to be something else than what they actually are. Some examples of that are dangling-else warnings and forcing unnecessary, Pascal style, logical operator parentheses. A workaround is putting in:
#pragma clang diagnostic ignored "-Wlogical-op-parentheses"
#pragma clang diagnostic ignored "-Wdangling-else"