From b47217154afb271a31764bd3081ed9e1e918dfd3 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 8 Jan 2005 05:22:19 +0000 Subject: [PATCH 1/1] (yyparse): Pacify non-GCC compilers about yyerrorlab being defined and not used. Use "if (false)" rather than "if (0)". --- data/lalr1.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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_); -- 2.45.2