From ffa43c1b71cab08d492dddd70cc912ef43d6b744 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 3 Feb 2023 09:58:38 +1100 Subject: [PATCH] AP_HAL_SITL: 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_HAL_SITL/SITL_State.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_SITL/SITL_State.cpp b/libraries/AP_HAL_SITL/SITL_State.cpp index 72b73d2b5a..2ce0e4beb3 100644 --- a/libraries/AP_HAL_SITL/SITL_State.cpp +++ b/libraries/AP_HAL_SITL/SITL_State.cpp @@ -949,7 +949,7 @@ void SITL_State::set_height_agl(void) // get height above terrain from AP_Terrain. This assumes // AP_Terrain is working float terrain_height_amsl; - struct Location location; + Location location; location.lat = _sitl->state.latitude*1.0e7; location.lng = _sitl->state.longitude*1.0e7;