diff --git a/util/mkerr.pl b/util/mkerr.pl index 49a52a7f33082298fac87935fa72639eb795fdf7..9a3b634d57395279f53855bebb5341d1d7cdf2f3 100644 --- a/util/mkerr.pl +++ b/util/mkerr.pl @@ -789,7 +789,7 @@ foreach (keys %rcodes) { push (@runref, $_) unless exists $urcodes{$_}; } -if($debug && defined(@funref) ) { +if($debug && @funref) { print STDERR "The following function codes were not referenced:\n"; foreach(sort @funref) { @@ -797,7 +797,7 @@ if($debug && defined(@funref) ) { } } -if($debug && defined(@runref) ) { +if($debug && @runref) { print STDERR "The following reason codes were not referenced:\n"; foreach(sort @runref) {