summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2012-02-13 18:14:23 +0000
committerZefram <zefram@fysh.org>2012-02-13 18:14:49 +0000
commit9f6df31a3476b575d0861637103b0a0a66a2607f (patch)
tree3e815cb32de68d9b99587ed23ce8cd4333554161 /perl.h
parent898b2fa7ca685c63900bc063ed519d98af0db541 (diff)
downloadperl-9f6df31a3476b575d0861637103b0a0a66a2607f.tar.gz
avoid unused-var warning from MY_CXT_INIT
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl.h b/perl.h
index 7d0548a9c4..5517154b89 100644
--- a/perl.h
+++ b/perl.h
@@ -5501,10 +5501,12 @@ typedef struct am_table_short AMTS;
* the interpreter goes away.) */
# define MY_CXT_INIT \
my_cxt_t *my_cxtp = \
- (my_cxt_t*)Perl_my_cxt_init(aTHX_ MY_CXT_INIT_ARG, sizeof(my_cxt_t))
+ (my_cxt_t*)Perl_my_cxt_init(aTHX_ MY_CXT_INIT_ARG, sizeof(my_cxt_t)); \
+ PERL_UNUSED_VAR(my_cxtp)
# define MY_CXT_INIT_INTERP(my_perl) \
my_cxt_t *my_cxtp = \
- (my_cxt_t*)Perl_my_cxt_init(my_perl, MY_CXT_INIT_ARG, sizeof(my_cxt_t))
+ (my_cxt_t*)Perl_my_cxt_init(my_perl, MY_CXT_INIT_ARG, sizeof(my_cxt_t)); \
+ PERL_UNUSED_VAR(my_cxtp)
/* This declaration should be used within all functions that use the
* interpreter-local data. */