mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-25 23:52:51 +00:00
Fix clang warning about unreachable code
This commit is contained in:
parent
e40175ef05
commit
39545d2c6d
@ -62,6 +62,7 @@ raw_input_match(struct raw_pcb *pcb, u8_t broadcast)
|
|||||||
{
|
{
|
||||||
LWIP_UNUSED_ARG(broadcast); /* in IPv6 only case */
|
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 */
|
/* Dual-stack: PCBs listening to any IP type also listen to any IP address */
|
||||||
if(IP_IS_ANY_TYPE_VAL(pcb->local_ip)) {
|
if(IP_IS_ANY_TYPE_VAL(pcb->local_ip)) {
|
||||||
#if LWIP_IPV4 && IP_SOF_BROADCAST_RECV
|
#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 */
|
#endif /* LWIP_IPV4 && IP_SOF_BROADCAST_RECV */
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#endif /* LWIP_IPV4 && LWIP_IPV6 */
|
||||||
|
|
||||||
/* Only need to check PCB if incoming IP version matches PCB IP version */
|
/* 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())) {
|
if(IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb, ip_current_dest_addr())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user