diff --git a/util/mkerr.pl b/util/mkerr.pl index 1f19cb921a..5033abad97 100644 --- a/util/mkerr.pl +++ b/util/mkerr.pl @@ -788,7 +788,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) { @@ -796,7 +796,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) {