From 338ab28dea766d30eb9f19cebe26953cb0285a21 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 8 Jul 2021 14:56:08 +1000 Subject: [PATCH] AP_NavEKF: larger frame limit for --enable-math-check-indexes --- libraries/AP_NavEKF/AP_NavEKF_core_common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_NavEKF/AP_NavEKF_core_common.h b/libraries/AP_NavEKF/AP_NavEKF_core_common.h index 253467cf0d..df576634b4 100644 --- a/libraries/AP_NavEKF/AP_NavEKF_core_common.h +++ b/libraries/AP_NavEKF/AP_NavEKF_core_common.h @@ -58,6 +58,10 @@ protected: #if HAL_WITH_EKF_DOUBLE // stack frames are larger with double EKF +#if MATH_CHECK_INDEXES +#pragma GCC diagnostic error "-Wframe-larger-than=4000" +#else #pragma GCC diagnostic error "-Wframe-larger-than=2100" #endif +#endif