]> git.saurik.com Git - bison.git/commit
glr.c: omit yyresolveLocations when locations are disabled.
authorJoel E. Denny <joeldenny@joeldenny.org>
Sat, 16 Apr 2011 22:15:40 +0000 (18:15 -0400)
committerJoel E. Denny <joeldenny@joeldenny.org>
Sat, 16 Apr 2011 22:15:40 +0000 (18:15 -0400)
commit55dd35633675f588c58ead46ecd6b5f4db504192
treeee1417fd95f1cb5154554f54a4debbdca62039c0
parenta898435b25eca4869e8c49b2b0fb1f649b030ce7
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.
ChangeLog
data/glr.c