diff options
author | Steve Peters <steve@fisharerojo.org> | 2006-01-11 11:53:07 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2006-01-11 11:53:07 +0000 |
commit | 808ee47ef2a751e743c48b9742ba8610cfe8a497 (patch) | |
tree | 1b9dc98bd2ff5d3084151a7701e1fe6159e6d0bd /util.c | |
parent | a2722ac963c473daf784eb7bed19dab587ac5fe6 (diff) | |
download | perl-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.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; } |