mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 15:23:02 +00:00
tests: pacify gcc 4.6.0's -Wunused-but-set-variable.
Reported by Jim Meyering at
<http://lists.gnu.org/archive/html/bug-bison/2011-04/msg00002.html>.
* tests/actions.at
(Default %printer and %destructor for mid-rule values): Define
YYLLOC_DEFAULT so that it uses its Rhs argument.
(cherry picked from commit c9e2da4f20)
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
2011-04-16 Joel E. Denny <joeldenny@joeldenny.org>
|
||||||
|
|
||||||
|
tests: pacify gcc 4.6.0's -Wunused-but-set-variable.
|
||||||
|
Reported by Jim Meyering at
|
||||||
|
<http://lists.gnu.org/archive/html/bug-bison/2011-04/msg00002.html>.
|
||||||
|
* tests/actions.at
|
||||||
|
(Default %printer and %destructor for mid-rule values): Define
|
||||||
|
YYLLOC_DEFAULT so that it uses its Rhs argument.
|
||||||
|
|
||||||
2011-04-16 Joel E. Denny <joeldenny@joeldenny.org>
|
2011-04-16 Joel E. Denny <joeldenny@joeldenny.org>
|
||||||
|
|
||||||
glr.c: omit yyresolveLocations when locations are disabled.
|
glr.c: omit yyresolveLocations when locations are disabled.
|
||||||
|
|||||||
@@ -1199,7 +1199,7 @@ AT_DATA_GRAMMAR([[input.y]],
|
|||||||
static int yylex (void);
|
static int yylex (void);
|
||||||
# define USE(SYM)
|
# define USE(SYM)
|
||||||
# define YYLTYPE int
|
# define YYLTYPE int
|
||||||
# define YYLLOC_DEFAULT(Current, Rhs, N)
|
# define YYLLOC_DEFAULT(Current, Rhs, N) (void)(Rhs)
|
||||||
# define YY_LOCATION_PRINT(File, Loc)
|
# define YY_LOCATION_PRINT(File, Loc)
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user