Skip to content

Commit

Permalink
Merge pull request #58 from nobu/compiler-warnings
Browse files Browse the repository at this point in the history
Suppress unused-but-set-variable warnings
  • Loading branch information
yui-knk authored Aug 3, 2023
2 parents 48afa6b + 3f54249 commit c708a60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lrama/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def test_rules(rules, input, expected)
%%
program : /* empty */
program : { (void)yynerrs; }
| expr { printf("=> %d", $1); }
;
expr : NUM
Expand Down Expand Up @@ -128,7 +128,7 @@ def test_rules(rules, input, expected)
%%
line: expr
{ printf("=> %d", $expr); }
{ (void)yynerrs; printf("=> %d", $expr); }
;
expr[result]: NUM
Expand Down

0 comments on commit c708a60

Please sign in to comment.