From 5d7c8a48db7edb5cc50ab4aefb1cb4a5e3eceb8c Mon Sep 17 00:00:00 2001 From: Geoff Thorpe Date: Fri, 25 Apr 2014 01:20:16 -0400 Subject: [PATCH] util/mkerr.pl: fix perl warning Gets rid of this; defined(@array) is deprecated at ../util/mkerr.pl line 792. (Maybe you should just omit the defined()?) defined(@array) is deprecated at ../util/mkerr.pl line 800. (Maybe you should just omit the defined()?) Signed-off-by: Geoff Thorpe (cherry picked from commit 647f360e2e86818cee1f2d0429e071d14814e0b5) --- util/mkerr.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/mkerr.pl b/util/mkerr.pl index 5775b86a4f..8769e1dbc6 100644 --- a/util/mkerr.pl +++ b/util/mkerr.pl @@ -698,7 +698,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) { @@ -706,7 +706,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) { -- 2.25.1