Some compilers (MS VisualStudio at least) throw a warning "unreachable code" on this part of the parser:

  yyerrorlab:

    /* Pacify compilers like GCC when the user code never invokes
       YYERROR and the label yyerrorlab therefore never appears in user
       code.  */
    if (false)
      goto yyerrorlab;

That's correct, the code is unreachable, so we have one warning replaced with another. I'm afraid that inclusion of this code has to be made conditional depending on whether YYERROR is acutally used anywhere.


--
Alexey Feldgendler <[EMAIL PROTECTED]>
[ICQ: 115226275] http://feldgendler.livejournal.com


Reply via email to