From af0282d4efd92c83c41c793ac6c56baf2a2bdb5d Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Sun, 20 Sep 2026 12:53:50 -0700 Subject: [PATCH] AP_NavEKF: make stack frame size check specific to ChibiOS It is the only HAL that sets `-Wframe-larger-than` so it is the only one where the limit needs modification to fit the EKF. ChibiOS additionally does not use Clang, so that check can be dropped. --- libraries/AP_NavEKF/AP_NavEKF_core_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_NavEKF/AP_NavEKF_core_common.h b/libraries/AP_NavEKF/AP_NavEKF_core_common.h index 7b676e34d69..dc958705b58 100644 --- a/libraries/AP_NavEKF/AP_NavEKF_core_common.h +++ b/libraries/AP_NavEKF/AP_NavEKF_core_common.h @@ -54,7 +54,7 @@ protected: } }; -#if HAL_WITH_EKF_DOUBLE && !defined(__clang__) +#if HAL_WITH_EKF_DOUBLE && CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS // stack frames are larger with double EKF #if MATH_CHECK_INDEXES #pragma GCC diagnostic error "-Wframe-larger-than=4000"