diff options
author | David Mitchell <davem@iabyn.com> | 2013-05-09 11:19:32 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2013-05-09 11:19:32 +0100 |
commit | 9c3c07f8ec0a449a2ff42754f2952773c0863fed (patch) | |
tree | 93f206bc8dbada7441958329506ce1b907adf889 /toke.c | |
parent | 05f5908f8de71a2ef1188624c0e09278342be6d0 (diff) | |
download | perl-9c3c07f8ec0a449a2ff42754f2952773c0863fed.tar.gz |
toke.c/MAD: silence a couple of warnings
A couple of vars are set but not used under -Dmad.
The easiest way to silence the warnings is to use PERL_UNUSED_VAR()
rather than try to #ifdef away all the places the vars appear under mad.
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -8563,6 +8563,7 @@ Perl_yylex(pTHX) #ifdef PERL_MAD PL_thistoken = subtoken; s = d; + PERL_UNUSED_VAR(tboffset); #else if (have_name) (void) force_word(PL_oldbufptr + tboffset, WORD, @@ -8685,6 +8686,7 @@ Perl_yylex(pTHX) force_next(0); PL_thistoken = subtoken; + PERL_UNUSED_VAR(have_proto); #else if (have_proto) { NEXTVAL_NEXTTOKE.opval = |