icmp6: Fix "LWIP_ICMP6_DATASIZE" redefined build warning if it was set to 0
Need to undefine LWIP_ICMP6_DATASIZE before change the setting. While at it, also remove the unneeded #ifndef LWIP_ICMP6_DATASIZE checking because it is set in lwip/opt.h. Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
@@ -57,10 +57,8 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#ifndef LWIP_ICMP6_DATASIZE
|
||||
#define LWIP_ICMP6_DATASIZE 8
|
||||
#endif
|
||||
#if LWIP_ICMP6_DATASIZE == 0
|
||||
#undef LWIP_ICMP6_DATASIZE
|
||||
#define LWIP_ICMP6_DATASIZE 8
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user