From 86d2f07f3db029feeb6ba747622ccfae76cd7a14 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 3 Feb 2023 09:58:38 +1100 Subject: [PATCH] AC_Avoidance: 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/AC_Avoidance/AP_OAPathPlanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AC_Avoidance/AP_OAPathPlanner.cpp b/libraries/AC_Avoidance/AP_OAPathPlanner.cpp index a142a1773c..3913cc7192 100644 --- a/libraries/AC_Avoidance/AP_OAPathPlanner.cpp +++ b/libraries/AC_Avoidance/AP_OAPathPlanner.cpp @@ -240,7 +240,7 @@ void AP_OAPathPlanner::avoidance_thread() bool origin_set = false; while (!origin_set) { hal.scheduler->delay(500); - struct Location ekf_origin {}; + Location ekf_origin {}; { WITH_SEMAPHORE(AP::ahrs().get_semaphore()); origin_set = AP::ahrs().get_origin(ekf_origin);