diff options
author | Joel E. Denny <joeldenny@joeldenny.org> | 2011-04-16 18:15:40 -0400 |
---|---|---|
committer | Joel E. Denny <joeldenny@joeldenny.org> | 2011-04-16 18:29:10 -0400 |
commit | 67b8cfbd94b6ec696291851f222922043044bfa4 (patch) | |
tree | a9af18fff1c81297341915e96246fb1b4a433606 /ChangeLog | |
parent | a801089ca3a86b89374dfbcc790944a9aad1aebd (diff) | |
download | bison-67b8cfbd94b6ec696291851f222922043044bfa4.tar.gz |
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.
(cherry picked from commit 55dd35633675f588c58ead46ecd6b5f4db504192)
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1,5 +1,18 @@ 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. * README-hacking (Updating a submodule): Give advice on how to determine the versions of gnulib and autoconf to which we should |