Merge pull request #6614 from pauluap/compiler_warning_macro_expression

Macro expansion leads to a bare expression
pull/6686/head
Martin Kojtal 2018-04-19 17:22:52 +02:00 committed by GitHub
commit a37ba4b3ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -855,7 +855,7 @@ nsapi_error_t mbed_lwip_bringup_2(bool dhcp, bool ppp, const char *ip, const cha
if (lwip_blocking) {
if (sys_arch_sem_wait(&lwip_netif_linked, 15000) == SYS_ARCH_TIMEOUT) {
if (ppp) {
ppp_lwip_disconnect();
(void)ppp_lwip_disconnect();
}
return NSAPI_ERROR_NO_CONNECTION;
}
@ -872,7 +872,7 @@ nsapi_error_t mbed_lwip_bringup_2(bool dhcp, bool ppp, const char *ip, const cha
if (!mbed_lwip_get_ip_addr(true, &lwip_netif)) {
if (sys_arch_sem_wait(&lwip_netif_has_any_addr, DHCP_TIMEOUT * 1000) == SYS_ARCH_TIMEOUT) {
if (ppp) {
ppp_lwip_disconnect();
(void)ppp_lwip_disconnect();
}
return NSAPI_ERROR_DHCP_FAILURE;
}