help-bison
[Top][All Lists]
Advanced

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

Re: new pacification suggestion?


From: Akim Demaille
Subject: Re: new pacification suggestion?
Date: Tue, 20 Nov 2018 21:10:43 +0100


> Le 20 nov. 2018 à 21:01, Akim Demaille <address@hidden> a écrit :
> 
> Hi Uxio,
> 
> Thanks for the report.  I’m installing this (in master).

Actually, I didn’t.  I don’t understand the behavior of clang.
On small examples, ((0)) works perfectly, but in the case of
bison’s own parser, I keep getting errors:

src/parse-gram.c:2848:5: error: code will never be executed 
[-Werror,-Wunreachable-code]
    goto yyerrorlab;
    ^~~~~~~~~~~~~~~
src/parse-gram.c:2847:8: note: silence by adding parentheses to mark code as 
explicitly dead
  if ((0))
       ^
       /* DISABLES CODE */ ( )




reply via email to

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