mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00
lwip_init(): at least IAR warns about "LWIP_UNUSED_ARG(a)" accessing an uninitialized variable... Try to fix this by initializing it (it will be optimized away anyway)
This commit is contained in:
parent
51a07661cc
commit
946b231516
@ -334,7 +334,7 @@ void
|
|||||||
lwip_init(void)
|
lwip_init(void)
|
||||||
{
|
{
|
||||||
#ifndef LWIP_SKIP_CONST_CHECK
|
#ifndef LWIP_SKIP_CONST_CHECK
|
||||||
int a;
|
int a = 0;
|
||||||
LWIP_UNUSED_ARG(a);
|
LWIP_UNUSED_ARG(a);
|
||||||
LWIP_ASSERT("LWIP_CONST_CAST not implemented correctly. Check your lwIP port.", LWIP_CONST_CAST(void*, &a) == &a);
|
LWIP_ASSERT("LWIP_CONST_CAST not implemented correctly. Check your lwIP port.", LWIP_CONST_CAST(void*, &a) == &a);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user