mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-16 21:26:43 +08:00
Add some comments to places where we cast through a void* to get rid of alignment warnings
This commit is contained in:
@@ -364,6 +364,7 @@ lwip_getaddrinfo(const char *nodename, const char *servname,
|
||||
return EAI_MEMORY;
|
||||
}
|
||||
memset(ai, 0, total_size);
|
||||
/* cast through void* to get rid of alignment warnings */
|
||||
sa = (struct sockaddr_storage *)(void*)((u8_t*)ai + sizeof(struct addrinfo));
|
||||
if (IP_IS_V6_VAL(addr)) {
|
||||
#if LWIP_IPV6
|
||||
|
||||
Reference in New Issue
Block a user