From 96a5add60f1f39d38341c09c11f0542e68f782b0 Mon Sep 17 00:00:00 2001 From: Andy Lester Date: Mon, 20 Feb 2006 18:27:11 -0600 Subject: unused context warnings Message-ID: <20060221062711.GA16160@petdance.com> p4raw-id: //depot/perl@27300 --- perl.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'perl.h') diff --git a/perl.h b/perl.h index 9f4e8069ca..505c122346 100644 --- a/perl.h +++ b/perl.h @@ -137,7 +137,7 @@ # endif #endif -#define pVAR register struct perl_vars* my_vars PERL_UNUSED_DECL +#define pVAR register struct perl_vars* const my_vars PERL_UNUSED_DECL #ifdef PERL_GLOBAL_STRUCT # define dVAR pVAR = (struct perl_vars*)PERL_GET_VARS() @@ -234,6 +234,12 @@ # define PERL_UNUSED_VAR(x) ((void)x) #endif +#ifdef USE_ITHREADS +# define PERL_UNUSED_CONTEXT PERL_UNUSED_ARG(my_perl) +#else +# define PERL_UNUSED_CONTEXT +#endif + #define NOOP (void)0 #define dNOOP extern int Perl___notused PERL_UNUSED_DECL -- cgit v1.2.1