Skip to content

Commit 8acf00a

Browse files
authored
Merge pull request #5319 from kegilbert/fix-build-warnings
Remove build warnings in LWIP
2 parents c67d91a + 5498054 commit 8acf00a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_tcp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,6 @@ tcp_close_shutdown_fin(struct tcp_pcb *pcb)
358358
default:
359359
/* Has already been closed, do nothing. */
360360
return ERR_OK;
361-
break;
362361
}
363362

364363
if (err == ERR_OK) {

features/FEATURE_LWIP/lwip-interface/lwip_stack.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@ static int get_ip_addr_type(const ip_addr_t *ip_addr)
293293
return IPADDR_TYPE_V4;
294294
}
295295
#endif
296+
#if LWIP_IPV6 && LWIP_IPV4
296297
return IPADDR_TYPE_ANY;
298+
#endif
297299
}
298300

299301
void add_dns_addr(struct netif *lwip_netif)
@@ -658,7 +660,7 @@ nsapi_error_t mbed_lwip_bringup_2(bool dhcp, bool ppp, const char *ip, const cha
658660
if (!netif_is_link_up(&lwip_netif)) {
659661
if (sys_arch_sem_wait(&lwip_netif_linked, 15000) == SYS_ARCH_TIMEOUT) {
660662
if (ppp) {
661-
ppp_lwip_disconnect();
663+
(void) ppp_lwip_disconnect();
662664
}
663665
return NSAPI_ERROR_NO_CONNECTION;
664666
}
@@ -686,7 +688,7 @@ nsapi_error_t mbed_lwip_bringup_2(bool dhcp, bool ppp, const char *ip, const cha
686688
if (!mbed_lwip_get_ip_addr(true, &lwip_netif)) {
687689
if (sys_arch_sem_wait(&lwip_netif_has_any_addr, DHCP_TIMEOUT * 1000) == SYS_ARCH_TIMEOUT) {
688690
if (ppp) {
689-
ppp_lwip_disconnect();
691+
(void) ppp_lwip_disconnect();
690692
}
691693
return NSAPI_ERROR_DHCP_FAILURE;
692694
}

0 commit comments

Comments
 (0)