Skip to content

Commit

Permalink
Remove redundant silence compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ydah committed Nov 14, 2023
1 parent c0b0c3c commit 8e46256
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions spec/lrama/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def test_rules(rules, input, expected, command_args: [], debug: false)
%%
program : { (void)yynerrs; }
program : /* empty */
| expr { printf("=> %d", $1); }
;
expr : NUM
Expand Down Expand Up @@ -149,7 +149,7 @@ def test_rules(rules, input, expected, command_args: [], debug: false)
%%
program : { }
program : /* empty */
;
Grammar
Expand Down Expand Up @@ -195,7 +195,7 @@ def test_rules(rules, input, expected, command_args: [], debug: false)
%%
program : { (void)yynerrs; }
program : /* empty */
| expr { printf("=> %d", $1); }
;
expr : NUM
Expand Down Expand Up @@ -290,8 +290,6 @@ def test_rules(rules, input, expected, command_args: [], debug: false)
line: expr
{
(void)yynerrs;
printf("line (%d): ", @expr.first_line);
print_location(&@expr);
Expand Down Expand Up @@ -411,7 +409,7 @@ def test_rules(rules, input, expected, command_args: [], debug: false)
%%
program : { (void)yynerrs; }
program : /* empty */
| expr { printf("=> %d", $1); }
;
Expand Down Expand Up @@ -457,7 +455,7 @@ def test_rules(rules, input, expected, command_args: [], debug: false)
%%
program : { (void)yynerrs; }
program : /* empty */
| expr { printf("=> %d", $1); }
;
expr : NUM
Expand Down

0 comments on commit 8e46256

Please sign in to comment.