diff --git a/libraries/AP_Networking/AP_Networking_tests.cpp b/libraries/AP_Networking/AP_Networking_tests.cpp index b4b335f872762..9370d93a23b40 100644 --- a/libraries/AP_Networking/AP_Networking_tests.cpp +++ b/libraries/AP_Networking/AP_Networking_tests.cpp @@ -54,7 +54,7 @@ void AP_Networking::test_UDP_client(void) while (true) { hal.scheduler->delay(100); char *s = nullptr; - asprintf(&s, "hello %u", unsigned(AP_HAL::millis())); + IGNORE_RETURN(asprintf(&s, "hello %u", unsigned(AP_HAL::millis()))); sock->send((const void*)s, strlen(s)); free(s); uint8_t buf[128] {}; @@ -89,7 +89,7 @@ void AP_Networking::test_TCP_client(void) while (true) { hal.scheduler->delay(100); char *s = nullptr; - asprintf(&s, "hello %u", unsigned(AP_HAL::millis())); + IGNORE_RETURN(asprintf(&s, "hello %u", unsigned(AP_HAL::millis()))); sock->send((const void*)s, strlen(s)); free(s); uint8_t buf[128] {};