]> git.saurik.com Git - bison.git/commitdiff
Avoid warnings generated by GCC 2.95.4 when Bison is
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 4 Jun 2003 05:58:52 +0000 (05:58 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 4 Jun 2003 05:58:52 +0000 (05:58 +0000)
configured with --enable-gcc-warnings.

ChangeLog

index 513b448a4aa146f7c81d8151e5a2e680c70cef09..f46198bc42a3da83de0b4728e2c1bb209a2689a9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2003-06-03  Paul Eggert  <eggert@twinsun.com>
+
+       Avoid warnings generated by GCC 2.95.4 when Bison is
+       configured with --enable-gcc-warnings.
+       * data/lalr1.cc (yy::]b4_parser_class_name[::parse,
+       yy::]b4_parser_class_name[::translate_,
+       yy::Stack::operator[] (unsigned),
+       yy::Stack::operator[] (unsigned) const,
+       yy::Slice::operator[] (unsigned),
+       yy::Slice::operator[] (unsigned) const):
+       Rename local vars to avoid warnings.
+       * tests/glr-regression.at (Improper handling of embedded actions
+       and $-N in GLR parsers): Remove unused local variable from yylex.
+       * tests/regression.at (_AT_DATA_DANCER_Y): Declare yylex to take
+       (void) as arg when not pure, since we now assume C89 when building
+       Bison.  Pacify GCC by using parameter.
+
 2003-06-02  Paul Eggert  <eggert@twinsun.com>
 
        * data/lalr1.cc (yy::Position::lines, yy::Position::columns,