mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-23 03:03:02 +00:00
(yyparse): Pacify non-GCC compilers about yyerrorlab
being defined and not used.
This commit is contained in:
10
data/yacc.c
10
data/yacc.c
@@ -1,7 +1,8 @@
|
|||||||
m4_divert(-1) -*- C -*-
|
m4_divert(-1) -*- C -*-
|
||||||
|
|
||||||
# Yacc compatible skeleton for Bison
|
# Yacc compatible skeleton for Bison
|
||||||
# Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004
|
|
||||||
|
# Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005
|
||||||
# Free Software Foundation, Inc.
|
# 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
|
||||||
@@ -1170,12 +1171,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 (0)
|
||||||
goto yyerrorlab;
|
goto yyerrorlab;
|
||||||
#endif
|
|
||||||
|
|
||||||
]b4_location_if([[ yyerror_range[0] = yylsp[1-yylen];
|
]b4_location_if([[ yyerror_range[0] = yylsp[1-yylen];
|
||||||
yylsp -= yylen;
|
yylsp -= yylen;
|
||||||
|
|||||||
Reference in New Issue
Block a user