mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-04-17 11:42:56 +00:00
nd6: Fix build error if LWIP_ND6_RDNSS_MAX_DNS_SERVERS == 0
Fix below build error when LWIP_ND6_RDNSS_MAX_DNS_SERVERS == 0 ../../../../lwip/src/core/ipv6/nd6.c: In function ‘nd6_input’: ../../../../lwip/src/core/ipv6/nd6.c:400:10: error: unused variable ‘rdnss_server_idx’ [-Werror=unused-variable] u8_t rdnss_server_idx = 0; ^~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors ../Common.mk:93: recipe for target 'nd6.o' failed make: *** [nd6.o] Error 1 Fixes: 6b1950ec24bc ("nd6: add support for RDNSS option (as per RFC 6106)") Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
6b1950ec24
commit
e3925cc359
@ -395,7 +395,7 @@ nd6_input(struct pbuf *p, struct netif *inp)
|
||||
struct ra_header *ra_hdr;
|
||||
u8_t *buffer; /* Used to copy options. */
|
||||
u16_t offset;
|
||||
#ifdef LWIP_ND6_RDNSS_MAX_DNS_SERVERS
|
||||
#if LWIP_ND6_RDNSS_MAX_DNS_SERVERS
|
||||
/* There can by multiple RDNSS options per RA */
|
||||
u8_t rdnss_server_idx = 0;
|
||||
#endif /* LWIP_ND6_RDNSS_MAX_DNS_SERVERS */
|
||||
|
Loading…
x
Reference in New Issue
Block a user