From: Robin Barker Date: Mon, 4 Jun 2001 14:27:28 +0000 (+0100) Subject: -Wall casting patch X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a6f8e609ea1ee8b98fd76b40d1ce1f2222d0fb6d;p=p5sagit%2Fp5-mst-13.2.git -Wall casting patch Message-Id: <200106041327.OAA15338@tempest.npl.co.uk> p4raw-id: //depot/perl@10425 --- diff --git a/ext/Devel/DProf/DProf.xs b/ext/Devel/DProf/DProf.xs index 0cee6c2..9225675 100644 --- a/ext/Devel/DProf/DProf.xs +++ b/ext/Devel/DProf/DProf.xs @@ -530,7 +530,7 @@ XS(XS_DB_sub) DBG_SUB_NOTIFY("XS DBsub(%s)\n", SvPV_nolen(Sub)); - SAVEDESTRUCTOR_X(check_depth, (void*)g_depth); + SAVEDESTRUCTOR_X(check_depth, INT2PTR(void*,g_depth)); g_depth++; prof_mark(aTHX_ OP_ENTERSUB); diff --git a/mg.c b/mg.c index b743879..6cd5f4f 100644 --- a/mg.c +++ b/mg.c @@ -45,7 +45,7 @@ S_save_magic(pTHX_ IV mgs_ix, SV *sv) MGS* mgs; assert(SvMAGICAL(sv)); - SAVEDESTRUCTOR_X(restore_magic, (void*)mgs_ix); + SAVEDESTRUCTOR_X(restore_magic, INT2PTR(void*,mgs_ix)); mgs = SSPTR(mgs_ix, MGS*); mgs->mgs_sv = sv; @@ -120,7 +120,7 @@ Perl_mg_get(pTHX_ SV *sv) mgp = &SvMAGIC(sv); /* Re-establish pointer after sv_upgrade */ } - restore_magic(aTHXo_ (void*)mgs_ix); + restore_magic(aTHXo_ INT2PTR(void*,mgs_ix)); return 0; } @@ -153,7 +153,7 @@ Perl_mg_set(pTHX_ SV *sv) CALL_FPTR(vtbl->svt_set)(aTHX_ sv, mg); } - restore_magic(aTHXo_ (void*)mgs_ix); + restore_magic(aTHXo_ INT2PTR(void*,mgs_ix)); return 0; } @@ -181,7 +181,7 @@ Perl_mg_length(pTHX_ SV *sv) save_magic(mgs_ix, sv); /* omit MGf_GSKIP -- not changed here */ len = CALL_FPTR(vtbl->svt_len)(aTHX_ sv, mg); - restore_magic(aTHXo_ (void*)mgs_ix); + restore_magic(aTHXo_ INT2PTR(void*,mgs_ix)); return len; } } @@ -205,7 +205,7 @@ Perl_mg_size(pTHX_ SV *sv) save_magic(mgs_ix, sv); /* omit MGf_GSKIP -- not changed here */ len = CALL_FPTR(vtbl->svt_len)(aTHX_ sv, mg); - restore_magic(aTHXo_ (void*)mgs_ix); + restore_magic(aTHXo_ INT2PTR(void*,mgs_ix)); return len; } } @@ -248,7 +248,7 @@ Perl_mg_clear(pTHX_ SV *sv) CALL_FPTR(vtbl->svt_clear)(aTHX_ sv, mg); } - restore_magic(aTHXo_ (void*)mgs_ix); + restore_magic(aTHXo_ INT2PTR(void*,mgs_ix)); return 0; }