From: Joel E. Denny Date: Sat, 16 Apr 2011 22:26:18 +0000 (-0400) Subject: tests: pacify gcc 4.6.0's -Wunused-but-set-variable. X-Git-Tag: v2.5_rc1~4 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/c9e2da4f20c97c4cb53b68d4912dbdb8836df9a4?ds=inline tests: pacify gcc 4.6.0's -Wunused-but-set-variable. Reported by Jim Meyering at . * tests/actions.at (Default %printer and %destructor for mid-rule values): Define YYLLOC_DEFAULT so that it uses its Rhs argument. --- diff --git a/ChangeLog b/ChangeLog index 4c63cb19..243ee1f0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2011-04-16 Joel E. Denny + + tests: pacify gcc 4.6.0's -Wunused-but-set-variable. + Reported by Jim Meyering at + . + * 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 glr.c: omit yyresolveLocations when locations are disabled. diff --git a/tests/actions.at b/tests/actions.at index 37616506..c95038ea 100644 --- a/tests/actions.at +++ b/tests/actions.at @@ -1199,7 +1199,7 @@ AT_DATA_GRAMMAR([[input.y]], static int yylex (void); # define USE(SYM) # define YYLTYPE int -# define YYLLOC_DEFAULT(Current, Rhs, N) +# define YYLLOC_DEFAULT(Current, Rhs, N) (void)(Rhs) # define YY_LOCATION_PRINT(File, Loc) %}