Skip to content

Commit 7305c72

Browse files
committed
fix initializaiton of @filters array (not a reference).
1 parent d396fc4 commit 7305c72

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

verilogpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1745,6 +1745,11 @@ sub is_changed {
17451745
return ($orig ne $self->{text});
17461746
}
17471747

1748+
sub _warn {
1749+
my @c = caller;
1750+
print STDERR "WARNING($c[2]): @_\n";
1751+
}
1752+
17481753
sub report_error {
17491754
print STDERR "ERROR: @_\n";
17501755
print "ERROR: @_\n";
@@ -2566,7 +2571,7 @@ sub expand_autointerface($$) {
25662571
$sort_autoif = 1;
25672572
}
25682573

2569-
my @filters = [];
2574+
my @filters = ();
25702575
my @macro_lines = split(/\s*[\r\n]\s*/, $macro);
25712576
foreach my $line (@macro_lines) {
25722577
$line =~ s/^\s+//;

0 commit comments

Comments
 (0)