]> git.saurik.com Git - bison.git/blobdiff - tests/c++.at
Handles several --enable-gcc-warnings.
[bison.git] / tests / c++.at
index f1b1b3ac9fda3173dc800640ddea6478ba72bbbd..e2f9d03f400b892b1cc8b7f78b3fdefccc870e23 100644 (file)
@@ -174,7 +174,7 @@ yy::parser::error(const yy::parser::location_type&,
 }
 
 int
-main(int argc, char *argv[])
+main (void)
 {
   yy::parser p;
   p.set_debug_level(!!getenv("YYDEBUG"));
@@ -310,7 +310,7 @@ AT_DATA_GRAMMAR([[input.y]],
 
 %code {
   // YYSTYPE contains a namespace reference.
-  int yylex (YYSTYPE *lval, const ]$1[::parser::location_type* lloc) {
+  int yylex (YYSTYPE *lval, const ]$1[::parser::location_type*) {
     lval->i = 3;
     return 0;
   }