Avoid bison compiler warning for yynerrs

This commit is contained in:
Josh Holtrop 2026-06-15 08:31:15 -04:00
parent 8f09415b37
commit aad02e522d

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;