From 39545d2c6d7afc61652e30ab96b0f77fce81852f Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Mon, 27 Jun 2016 20:56:21 +0200 Subject: [PATCH] Fix clang warning about unreachable code --- src/core/raw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/raw.c b/src/core/raw.c index c777f23e..c7ff7bb8 100644 --- a/src/core/raw.c +++ b/src/core/raw.c @@ -62,6 +62,7 @@ raw_input_match(struct raw_pcb *pcb, u8_t broadcast) { LWIP_UNUSED_ARG(broadcast); /* in IPv6 only case */ +#if LWIP_IPV4 && LWIP_IPV6 /* Dual-stack: PCBs listening to any IP type also listen to any IP address */ if(IP_IS_ANY_TYPE_VAL(pcb->local_ip)) { #if LWIP_IPV4 && IP_SOF_BROADCAST_RECV @@ -71,6 +72,7 @@ raw_input_match(struct raw_pcb *pcb, u8_t broadcast) #endif /* LWIP_IPV4 && IP_SOF_BROADCAST_RECV */ return 1; } +#endif /* LWIP_IPV4 && LWIP_IPV6 */ /* Only need to check PCB if incoming IP version matches PCB IP version */ if(IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb, ip_current_dest_addr())) {