Skip to content

Commit

Permalink
Remove all mention of unused var yynerrs
Browse files Browse the repository at this point in the history
  • Loading branch information
dajobe committed Dec 4, 2023
1 parent 64d3ecb commit 72a8a2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/fix-bison.pl
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ ($)
my $line=$. +$line_offset;
s/^(\#line) \d+ (.*\.c)/$1 $line $2/;

# Remove all mention of unused var yynerrs
s%^(\s*)(.*yynerrs.*)%$1/* $2 */%;
print OUT;
}
}
Expand Down

0 comments on commit 72a8a2d

Please sign in to comment.