Fixed compiler warnings when casting where we know the source is aligned (by casting to void-pointer first)

This commit is contained in:
goldsimon
2010-03-15 10:44:19 +00:00
parent c4bc9ce59a
commit 7466474365
3 changed files with 23 additions and 22 deletions

View File

@@ -146,7 +146,7 @@ lwip_standard_chksum(void *dataptr, int len)
}
/* Add the bulk of the data */
ps = (u16_t *)pb;
ps = (u16_t *)(void *)pb;
while (len > 1) {
sum += *ps++;
len -= 2;