summaryrefslogtreecommitdiff
path: root/lib/fields.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fields.pm')
-rw-r--r--lib/fields.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/fields.pm b/lib/fields.pm
index ac4581036f..37ff99d78a 100644
--- a/lib/fields.pm
+++ b/lib/fields.pm
@@ -172,8 +172,7 @@ sub import {
if ($fno and $fno != $next) {
require Carp;
if ($fno < $fattr->[0]) {
- warnings::warn("Hides field '$f' in base class")
- if warnings::enabled();
+ warnings::warnif("Hides field '$f' in base class") ;
} else {
Carp::croak("Field name '$f' already in use");
}