This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
foldEQ(), foldEQ_latin1(): mark the context as unused
authorTony Cook <tony@develop-help.com>
Wed, 12 Apr 2023 03:59:13 +0000 (13:59 +1000)
committerTony Cook <tony@develop-help.com>
Tue, 4 Jul 2023 00:31:07 +0000 (10:31 +1000)
These functions are also used as pointers, so we need to retain the
context parameter to be compatible with the other similar functions
that do use their context.

inline.h

index cc2fa09..5938699 100644 (file)
--- a/inline.h
+++ b/inline.h
@@ -3156,6 +3156,8 @@ range bytes match only themselves.
 PERL_STATIC_INLINE I32
 Perl_foldEQ(pTHX_ const char *s1, const char *s2, I32 len)
 {
+    PERL_UNUSED_CONTEXT;
+
     const U8 *a = (const U8 *)s1;
     const U8 *b = (const U8 *)s2;
 
@@ -3179,6 +3181,8 @@ Perl_foldEQ_latin1(pTHX_ const char *s1, const char *s2, I32 len)
      * does not check for this.  Nor does it check that the strings each have
      * at least 'len' characters. */
 
+    PERL_UNUSED_CONTEXT;
+
     const U8 *a = (const U8 *)s1;
     const U8 *b = (const U8 *)s2;