X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/3209eb1c4c5de8dd812e65da27df00c548f476fe..0d40b36417759153678ed0ad125bc912884f602d:/tests/actions.at diff --git a/tests/actions.at b/tests/actions.at index 7220b715..d538f883 100644 --- a/tests/actions.at +++ b/tests/actions.at @@ -633,7 +633,7 @@ main (int argc, const char *argv[]) { int status; yydebug = !!getenv ("YYDEBUG"); - assert (argc == 2); + assert (argc == 2); (void) argc; source = argv[1]; status = yyparse (); switch (status) @@ -1530,10 +1530,13 @@ AT_DATA_GRAMMAR([[input.y]], ]AT_SKEL_CC_IF([[ # include - static void - report (std::ostream& yyo, int ival, float fval) + namespace { - yyo << "ival: " << ival << ", fval: " << fval; + void + report (std::ostream& yyo, int ival, float fval) + { + yyo << "ival: " << ival << ", fval: " << fval; + } } ]], [[ # include