]> git.saurik.com Git - bison.git/blobdiff - ChangeLog
glr.c: omit yyresolveLocations when locations are disabled.
[bison.git] / ChangeLog
index 70ee00436fc8923cd7fe4b0b23c792b8bd278328..4c63cb1944f09138671a39628d4034d8f55222c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2011-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
+
+       glr.c: omit yyresolveLocations when locations are disabled.
+       This prevents gcc 4.6.0's -Wunused-but-set-variable from warning
+       about yyresolveLocations's local yyrhsloc.  When locations are
+       enabled, there's no such warning because YYLLOC_DEFAULT then uses
+       yyrhsloc.  Reported by Jim Meyering at
+       <http://lists.gnu.org/archive/html/bug-bison/2011-04/msg00002.html>.
+       * data/glr.c (yyresolveLocations): Omit definition when locations
+       are disabled.
+       (yyresolveValue): Omit yyresolveLocations invocation when
+       locations are disabled.
+
 2011-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
 
        gnulib, autoconf: update.