summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorMarcus Holland-Moritz <mhx-perl@gmx.net>2006-01-21 15:31:06 +0000
committerMarcus Holland-Moritz <mhx-perl@gmx.net>2006-01-21 15:31:06 +0000
commit2593c6c6ec6db0c4fc4ec479ff2dcc27740704c8 (patch)
treecc27168707f1f291b636c29c3169f64c522feb10 /pp_ctl.c
parent7a1c739b67fd7d50a3ebda573fb9722f1a02a122 (diff)
downloadperl-2593c6c6ec6db0c4fc4ec479ff2dcc27740704c8.tar.gz
Remove wrong cast to (void *), which fixes a gcc warning, and use
the return value of upg_version() at least once in the core. p4raw-id: //depot/perl@26918
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 4761deda33..4a13be0925 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3091,7 +3091,7 @@ PP(pp_require)
sv = new_version(sv);
if (!sv_derived_from(PL_patchlevel, "version"))
- (void *)upg_version(PL_patchlevel);
+ upg_version(PL_patchlevel);
if (cUNOP->op_first->op_type == OP_CONST && cUNOP->op_first->op_private & OPpCONST_NOVER) {
if ( vcmp(sv,PL_patchlevel) < 0 )
DIE(aTHX_ "Perls since %"SVf" too modern--this is %"SVf", stopped",