From 8155e0ab3b377d3b93123d4cd38004ca9fd9c693 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 3 Feb 2023 09:58:38 +1100 Subject: [PATCH] AP_Compass: 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_Compass/CompassCalibrator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Compass/CompassCalibrator.cpp b/libraries/AP_Compass/CompassCalibrator.cpp index 98c8856230..6b77cd9e70 100644 --- a/libraries/AP_Compass/CompassCalibrator.cpp +++ b/libraries/AP_Compass/CompassCalibrator.cpp @@ -1068,7 +1068,7 @@ bool CompassCalibrator::fix_radius(void) _params.scale_factor = 0; return true; } - const struct Location &loc = AP::gps().location(); + const Location &loc = AP::gps().location(); float intensity; float declination; float inclination;