From 77d898c951341e61e889647d8d50967319e798d6 Mon Sep 17 00:00:00 2001 From: murata Date: Thu, 10 Feb 2022 22:43:53 +0900 Subject: [PATCH] Copter: Change the process for errors --- ArduCopter/GCS_Mavlink.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ArduCopter/GCS_Mavlink.cpp b/ArduCopter/GCS_Mavlink.cpp index 73b05c077a..ff3c53e159 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -1407,10 +1407,7 @@ void GCS_MAVLINK_Copter::handleMessage(const mavlink_message_t &msg) new_home_loc.lat = packet.latitude; new_home_loc.lng = packet.longitude; new_home_loc.alt = packet.altitude / 10; -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wunused-result" - copter.set_home(new_home_loc, true); -#pragma GCC diagnostic pop + IGNORE_RETURN(copter.set_home(new_home_loc, true)); } break; }