Skip to content

Commit

Permalink
Merge pull request #130 from khwilliamson/new_perls
Browse files Browse the repository at this point in the history
New perls
  • Loading branch information
dankogai authored Feb 16, 2018
2 parents 03aab5e + cfaedb2 commit d1ffca5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Encode.xs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ strict_utf8(pTHX_ SV* sv)
}

/* Modern perls have the capability to do this more efficiently and portably */
#ifdef is_utf8_string_loc_flags
#ifdef utf8n_to_uvchr_msgs
# define CAN_USE_BASE_PERL
#endif

Expand Down 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 d1ffca5

Please sign in to comment.