mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 08:13:02 +00:00
(yyparse): Pacify non-GCC compilers about yyerrorlab
being defined and not used. Use "if (false)" rather than "if (0)".
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
m4_divert(-1)
|
m4_divert(-1)
|
||||||
|
|
||||||
# C++ skeleton for Bison
|
# 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
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -747,12 +749,11 @@ yyerrlab:
|
|||||||
`---------------------------------------------------*/
|
`---------------------------------------------------*/
|
||||||
yyerrorlab:
|
yyerrorlab:
|
||||||
|
|
||||||
#ifdef __GNUC__
|
/* Pacify compilers like GCC when the user code never invokes
|
||||||
/* Pacify GCC when the user code never invokes YYERROR and the label
|
YYERROR and the label yyerrorlab therefore never appears in user
|
||||||
yyerrorlab therefore never appears in user code. */
|
code. */
|
||||||
if (0)
|
if (false)
|
||||||
goto yyerrorlab;
|
goto yyerrorlab;
|
||||||
#endif
|
|
||||||
|
|
||||||
yyerror_range_[0] = yylocation_stack_[yylen_ - 1];
|
yyerror_range_[0] = yylocation_stack_[yylen_ - 1];
|
||||||
yypop_ (yylen_);
|
yypop_ (yylen_);
|
||||||
|
|||||||
Reference in New Issue
Block a user