From: David Odin Date: Wed, 19 Apr 2017 16:10:34 +0000 (+0200) Subject: shut up a warning at -Wextra level by using the right type for an index variable... X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=be064fc94d080626bf00b5a07de0f9f2c4762538;p=soft%2Flpc122x%2Fcore shut up a warning at -Wextra level by using the right type for an index variable (size_t instead of i) --- diff --git a/lib/string.c b/lib/string.c index ee69e32..8d4623b 100644 --- a/lib/string.c +++ b/lib/string.c @@ -59,7 +59,7 @@ void* memset(void* s, int c, size_t count) unsigned long* sl = (unsigned long*) s; unsigned long cl = 0; char* s8; - int i; + size_t i; /* do it one word at a time (32 bits or 64 bits) while possible */ if ( ((uint32_t)s & (sizeof(*sl) - 1)) == 0) {