patch #9249: tcp: Fix unused parameter 'dest' build warning if !LWIP_IPV6

Apply modified version of Axel Lin's patch, without #ifdef
This commit is contained in:
Dirk Ziegelmeier 2017-02-05 12:44:32 +01:00
parent ef758082ed
commit d857344aa8

View File

@ -1912,6 +1912,8 @@ tcp_eff_send_mss_netif(u16_t sendmss, struct netif *outif, const ip_addr_t *dest
u16_t mss_s;
s16_t mtu;
LWIP_UNUSED_ARG(dest); /* in case IPv6 is disabled */
#if LWIP_IPV6
#if LWIP_IPV4
if (IP_IS_V6(dest))