diff --git a/src/modules/commander/module.mk b/src/modules/commander/module.mk index 4ef361a826..4176f212d1 100644 --- a/src/modules/commander/module.mk +++ b/src/modules/commander/module.mk @@ -59,5 +59,7 @@ MODULE_STACKSIZE = 5000 MAXOPTIMIZATION = -Os +ifdef ($(PX4_TARGET_OS),nuttx) EXTRACXXFLAGS = -Wframe-larger-than=2200 +endif