Skip to content

Commit

Permalink
Fix Issue dankogai#129
Browse files Browse the repository at this point in the history
PERL_UNUSED_VAR doesn't work for variables marked 'const' for perls
earlier than about 5.9.3.  This commit replaces the failing call with
the modern expansion of it.  This should suffice for now, as this code
is planned to be replaced in the next few months.
  • Loading branch information
khwilliamson committed Feb 14, 2018
1 parent 1d86b6a commit f6ea05b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Encode.xs
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ process_utf8(pTHX_ SV* dst, U8* s, U8* e, SV *check_sv,

#else /* Use code for earlier perls */

PERL_UNUSED_VAR(flags);
((void)sizeof(flags)); /* Avoid compiler warning */

if (UTF8_IS_INVARIANT(*s)) {
*d++ = *s++;
Expand Down

0 comments on commit f6ea05b

Please sign in to comment.