summaryrefslogtreecommitdiffstats
path: root/newlib/libc/string/strcasestr.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/string/strcasestr.c')
-rw-r--r--newlib/libc/string/strcasestr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/string/strcasestr.c b/newlib/libc/string/strcasestr.c
index 0122d7ab8..8ff91fdd8 100644
--- a/newlib/libc/string/strcasestr.c
+++ b/newlib/libc/string/strcasestr.c
@@ -84,6 +84,8 @@ QUICKREF
(!memchr ((h) + (h_l), '\0', (j) + (n_l) - (h_l)) \
&& ((h_l) = (j) + (n_l)))
# define CANON_ELEMENT(c) tolower (c)
+/* strncasecmp uses signed char, CMP_FUNC is expected to use unsigned char. */
+#pragma GCC diagnostic ignored "-Wpointer-sign"
# define CMP_FUNC strncasecmp
# include "str-two-way.h"
#endif