From 633cf9b5dd846d6dbd5ab6102de24cf2a7c4582c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 9 Oct 2014 12:24:56 +0000 Subject: * libc/string/memccpy.c (memccpy): Fix warning about signed-unsigned comparison * libc/string/memchr.c (memchr): Ditto. * libc/string/memrchr.c (memrchr): Ditto. * libc/string/memset.c: (memset): Ditto. * libc/string/rawmemchr.c (rawmemchr): Ditto. * libc/string/local.h (__locale_cjk_lang): Fix "function declaration isn't a prototype" warning. * libc/string/strcasestr.c (strcasestr): Ditto. * libc/string/u_strerr.c (_user_strerror): Fix "unused parameter" warnings. * libc/string/rawmemchr.c (rawmemchr): Fix comment type "// ..." -> "/* ... */". --- newlib/libc/string/rawmemchr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'newlib/libc/string/rawmemchr.c') diff --git a/newlib/libc/string/rawmemchr.c b/newlib/libc/string/rawmemchr.c index a9e2acd85..4b5a4cdeb 100644 --- a/newlib/libc/string/rawmemchr.c +++ b/newlib/libc/string/rawmemchr.c @@ -77,7 +77,7 @@ _DEFUN (rawmemchr, (src_void, c), #if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__) unsigned long *asrc; unsigned long mask; - int i; + unsigned int i; while (UNALIGNED (src)) { @@ -110,7 +110,7 @@ _DEFUN (rawmemchr, (src_void, c), src = (unsigned char *) asrc; -#endif // !PREFER_SIZE_OVER_SPEED && !__OPTIMIZE_SIZE__ +#endif /* !PREFER_SIZE_OVER_SPEED && !__OPTIMIZE_SIZE__ */ while (1) { -- cgit v1.2.3