Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-08-08 18:05:54 +0400
committerCorinna Vinschen <corinna@vinschen.de>2012-08-08 18:05:54 +0400
commit49264ad7dd7d6f196c54c5b8750ef98edcbb0683 (patch)
tree21d900ca63fbb9156d44fccdd84943f4c46dcb96 /newlib/libc/string
parent1f232abc8938cc1fe821a6a8504b3845bad89522 (diff)
* libc/posix/engine.c(dissect): Guard diagnostic pragma for right
versions of GCC only. * libc/string/strcasestr.c: Ditto. Fix typo in previous ChangeLog entry.
Diffstat (limited to 'newlib/libc/string')
-rw-r--r--newlib/libc/string/strcasestr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libc/string/strcasestr.c b/newlib/libc/string/strcasestr.c
index 8ff91fdd8..91783164c 100644
--- a/newlib/libc/string/strcasestr.c
+++ b/newlib/libc/string/strcasestr.c
@@ -84,8 +84,11 @@ QUICKREF
(!memchr ((h) + (h_l), '\0', (j) + (n_l) - (h_l)) \
&& ((h_l) = (j) + (n_l)))
# define CANON_ELEMENT(c) tolower (c)
+#if defined (__GNUC__) && \
+ ((__GNUC__ == 4 && __GNUC_MINOR__ >= 2) || __GNUC__ > 4)
/* strncasecmp uses signed char, CMP_FUNC is expected to use unsigned char. */
#pragma GCC diagnostic ignored "-Wpointer-sign"
+#endif
# define CMP_FUNC strncasecmp
# include "str-two-way.h"
#endif