From: Paul Eggert Date: Sat, 8 Jan 2005 05:22:19 +0000 (+0000) Subject: (yyparse): Pacify non-GCC compilers about yyerrorlab X-Git-Tag: BISON-2_1~207 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/b47217154afb271a31764bd3081ed9e1e918dfd3?ds=inline;hp=c7a65b99a6ee5095a752be24303856e31e9429cd (yyparse): Pacify non-GCC compilers about yyerrorlab being defined and not used. Use "if (false)" rather than "if (0)". --- diff --git a/data/lalr1.cc b/data/lalr1.cc index ed825075..746054be 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -1,6 +1,8 @@ m4_divert(-1) + # C++ skeleton for Bison -# Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. + +# Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -747,12 +749,11 @@ yyerrlab: `---------------------------------------------------*/ yyerrorlab: -#ifdef __GNUC__ - /* Pacify GCC when the user code never invokes YYERROR and the label - yyerrorlab therefore never appears in user code. */ - if (0) + /* 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; -#endif yyerror_range_[0] = yylocation_stack_[yylen_ - 1]; yypop_ (yylen_);