summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/B/B.xs2
-rw-r--r--ext/Cwd/Cwd.xs2
-rw-r--r--ext/Devel/DProf/DProf.xs2
3 files changed, 3 insertions, 3 deletions
diff --git a/ext/B/B.xs b/ext/B/B.xs
index 107d3a6cce..32556ec626 100644
--- a/ext/B/B.xs
+++ b/ext/B/B.xs
@@ -1653,7 +1653,7 @@ CvXSUBANY(cv)
B::CV cv
CODE:
ST(0) = CvCONST(cv) ?
- make_sv_object(aTHX_ sv_newmortal(),CvXSUBANY(cv).any_ptr) :
+ make_sv_object(aTHX_ sv_newmortal(),(SV *)CvXSUBANY(cv).any_ptr) :
sv_2mortal(newSViv(CvXSUBANY(cv).any_iv));
MODULE = B PACKAGE = B::CV
diff --git a/ext/Cwd/Cwd.xs b/ext/Cwd/Cwd.xs
index 97c583ff53..e7323ab95b 100644
--- a/ext/Cwd/Cwd.xs
+++ b/ext/Cwd/Cwd.xs
@@ -417,7 +417,7 @@ PPCODE:
char *path;
char buf[MAXPATHLEN];
- path = pathsv ? SvPV_nolen(pathsv) : ".";
+ path = pathsv ? SvPV_nolen(pathsv) : (char *)".";
if (bsd_realpath(path, buf)) {
sv_setpvn(TARG, buf, strlen(buf));
diff --git a/ext/Devel/DProf/DProf.xs b/ext/Devel/DProf/DProf.xs
index 820214260b..10d4172bcd 100644
--- a/ext/Devel/DProf/DProf.xs
+++ b/ext/Devel/DProf/DProf.xs
@@ -373,7 +373,7 @@ prof_mark(pTHX_ opcode ptype)
gv = CvGV(cv);
pname = ((GvSTASH(gv) && HvNAME(GvSTASH(gv)))
? HvNAME(GvSTASH(gv))
- : "(null)");
+ : (char *) "(null)");
gname = GvNAME(gv);
set_cv_key(aTHX_ cv, pname, gname);