From: Rafael Garcia-Suarez Date: Fri, 30 Jun 2006 13:09:40 +0000 (+0000) Subject: PERL_UNUSED_CONTEXT is not enough to silence warnings when pTHXx X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ed6c66dd09fbfa492035c1c3ffab6e32232b3d6e;p=p5sagit%2Fp5-mst-13.2.git PERL_UNUSED_CONTEXT is not enough to silence warnings when pTHXx is used. p4raw-id: //depot/perl@28457 --- diff --git a/perl.c b/perl.c index 3ddbbfb..554a3c0 100644 --- a/perl.c +++ b/perl.c @@ -245,7 +245,7 @@ void perl_construct(pTHXx) { dVAR; - PERL_UNUSED_CONTEXT; + PERL_UNUSED_ARG(my_perl); #ifdef MULTIPLICITY init_interp(); PL_perl_destruct_level = 1; @@ -545,7 +545,7 @@ perl_destruct(pTHXx) pid_t child; #endif - PERL_UNUSED_CONTEXT; + PERL_UNUSED_ARG(my_perl); /* wait for all pseudo-forked children to finish */ PERL_WAIT_FOR_CHILDREN; @@ -1454,7 +1454,7 @@ perl_parse(pTHXx_ XSINIT_t xsinit, int argc, char **argv, char **env) int ret; dJMPENV; - PERL_UNUSED_VAR(my_perl); + PERL_UNUSED_ARG(my_perl); #ifdef SETUID_SCRIPTS_ARE_SECURE_NOW #ifdef IAMSUID @@ -2294,7 +2294,7 @@ perl_run(pTHXx) int ret = 0; dJMPENV; - PERL_UNUSED_CONTEXT; + PERL_UNUSED_ARG(my_perl); oldscope = PL_scopestack_ix; #ifdef VMS