]> git.saurik.com Git - bison.git/commitdiff
tests: pacify gcc 4.6.0's -Wunused-but-set-variable.
authorJoel E. Denny <joeldenny@joeldenny.org>
Sat, 16 Apr 2011 22:26:18 +0000 (18:26 -0400)
committerJoel E. Denny <joeldenny@joeldenny.org>
Sat, 16 Apr 2011 22:26:18 +0000 (18:26 -0400)
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.

ChangeLog
tests/actions.at

index 4c63cb1944f09138671a39628d4034d8f55222c6..243ee1f08604fc050675a490273b7e63163dabaa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        glr.c: omit yyresolveLocations when locations are disabled.
index 376165061149fcea1483587c8fb807bb73c5d01e..c95038ea6933edb01081717fd0112377a47ddfb0 100644 (file)
@@ -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)
 %}