Avoid bison compiler warning for yynerrs

This commit is contained in:
josh committed 2026-06-15 08:31:15 -04:00
1 parent 8f09415b37
commit aad02e522d
1 file changed
+6
+6
View File
@@ -28,6 +28,12 @@ refptr<Scope> parser_scope;
%locations
%define parse.error verbose
%initial-action {
/* Reference yynerrs so the generated parser does not warn that it is
set but never used; this grammar has no error-recovery rules. */
(void) yynerrs;
}
%token PLUS;
%token MINUS;
%token TIMES;