summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2006-01-11 11:53:07 +0000
committerSteve Peters <steve@fisharerojo.org>2006-01-11 11:53:07 +0000
commit808ee47ef2a751e743c48b9742ba8610cfe8a497 (patch)
tree1b9dc98bd2ff5d3084151a7701e1fe6159e6d0bd /util.c
parenta2722ac963c473daf784eb7bed19dab587ac5fe6 (diff)
downloadperl-808ee47ef2a751e743c48b9742ba8610cfe8a497.tar.gz
Fix the new warning created with version-0.53
p4raw-id: //depot/perl@26780
Diffstat (limited to 'util.c')
-rw-r--r--util.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/util.c b/util.c
index 59c287f55e..2859a47413 100644
--- a/util.c
+++ b/util.c
@@ -4246,9 +4246,11 @@ Perl_upg_version(pTHX_ SV *ver)
version = savepv(SvPV_nolen(ver));
}
s = scan_version(version, ver, qv);
- if ( *s != '\0' )
- Perl_warn(aTHX_ "Version string '%s' contains invalid data; "
- "ignoring: '%s'", version, s);
+ if ( *s != '\0' )
+ if(ckWARN(WARN_MISC))
+ Perl_warner(aTHX_ packWARN(WARN_MISC),
+ "Version string '%s' contains invalid data; "
+ "ignoring: '%s'", version, s);
Safefree(version);
return ver;
}