From 3f54249f686141c34dd214dfbc61a2dc68561c74 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 31 Jul 2023 19:11:32 +0900 Subject: [PATCH] Suppress unused-but-set-variable warnings --- spec/lrama/integration_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/lrama/integration_spec.rb b/spec/lrama/integration_spec.rb index d0234360..d36dbe4a 100644 --- a/spec/lrama/integration_spec.rb +++ b/spec/lrama/integration_spec.rb @@ -93,7 +93,7 @@ def test_rules(rules, input, expected) %% - program : /* empty */ + program : { (void)yynerrs; } | expr { printf("=> %d", $1); } ; expr : NUM @@ -128,7 +128,7 @@ def test_rules(rules, input, expected) %% line: expr - { printf("=> %d", $expr); } + { (void)yynerrs; printf("=> %d", $expr); } ; expr[result]: NUM