summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2008-02-20 09:17:37 +0000
committerSteve Hay <SteveHay@planit.com>2008-02-20 09:17:37 +0000
commitf30de7493b87cd1270b4840a21a0c5c0f76598a7 (patch)
tree4924e4e81e305a34f5039e220c99d1b37fc4d06a
parentcb644b64ca9832a7b2f882b0bc45b9ec7fb05e48 (diff)
downloadperl-f30de7493b87cd1270b4840a21a0c5c0f76598a7.tar.gz
Fix Win32/VC6 compiler warnings caused by #33231
p4raw-id: //depot/perl@33336
-rw-r--r--perl.h2
-rw-r--r--sv.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/perl.h b/perl.h
index 16b0c7c5ef..c241ae64be 100644
--- a/perl.h
+++ b/perl.h
@@ -4637,7 +4637,7 @@ typedef regexp*(CPERLscope(*regdupe_t)) (pTHX_ const regexp* r, CLONE_PARAMS *pa
typedef void (*DESTRUCTORFUNC_NOCONTEXT_t) (void*);
typedef void (*DESTRUCTORFUNC_t) (pTHX_ void*);
-typedef void (*SVFUNC_t) (pTHX_ SV*);
+typedef void (*SVFUNC_t) (pTHX_ SV* const);
typedef I32 (*SVCOMPARE_t) (pTHX_ SV*, SV*);
typedef void (*XSINIT_t) (pTHX);
typedef void (*ATEXIT_t) (pTHX_ void*);
diff --git a/sv.c b/sv.c
index 3d60e021d6..1ef5e31aa8 100644
--- a/sv.c
+++ b/sv.c
@@ -464,7 +464,7 @@ do_clean_objs(pTHX_ SV *const ref)
#ifndef DISABLE_DESTRUCTOR_KLUDGE
static void
-do_clean_named_objs(pTHX_ SV *sv)
+do_clean_named_objs(pTHX_ SV *const sv)
{
dVAR;
assert(SvTYPE(sv) == SVt_PVGV);
@@ -11255,7 +11255,7 @@ Perl_ss_dup(pTHX_ PerlInterpreter *proto_perl, CLONE_PARAMS* param)
* so we know which stashes want their objects cloned */
static void
-do_mark_cloneable_stash(pTHX_ SV *sv)
+do_mark_cloneable_stash(pTHX_ SV *const sv)
{
const HEK * const hvname = HvNAME_HEK((HV*)sv);
if (hvname) {