From 034671b9696b58b8c4e4dad0b55347642d176fd3 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 3 Feb 2023 09:58:39 +1100 Subject: [PATCH] AP_Landing: avoid using struct Location clang reports this could be a problem when compiling under some EABIs. Remove it from most places as it is just noise, replace with class where we want to avoid including Location.h --- libraries/AP_Landing/AP_Landing_Slope.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Landing/AP_Landing_Slope.cpp b/libraries/AP_Landing/AP_Landing_Slope.cpp index dee0a7766a..bd61e9488e 100644 --- a/libraries/AP_Landing/AP_Landing_Slope.cpp +++ b/libraries/AP_Landing/AP_Landing_Slope.cpp @@ -148,7 +148,7 @@ bool AP_Landing::type_slope_verify_land(const Location &prev_WP_loc, Location &n when landing we keep the L1 navigation waypoint 200m ahead. This prevents sudden turns if we overshoot the landing point */ - struct Location land_WP_loc = next_WP_loc; + Location land_WP_loc = next_WP_loc; int32_t land_bearing_cd = prev_WP_loc.get_bearing_to(next_WP_loc); land_WP_loc.offset_bearing(land_bearing_cd * 0.01f, prev_WP_loc.get_distance(current_loc) + 200);