From 566d73ec22516e2544f3d69c0c79bde59c2d8c2f Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Mon, 17 Apr 2017 14:30:51 -1000 Subject: [PATCH] Nuttx Build option had repeated ARCHWARNINGS The Make.defs compisition is ARCHWARNINGS = $(PX4_ARCHWARNINGS) ARCHCWARNINGS = $(PX4_ARCHWARNINGS) $(PX4_ARCHCWARNINGS) ARCHWARNINGSXX = $(ARCHWARNINGS) $(PX4_ARCHWARNINGSXX) so the pieces from nuttx-configs/PX4_Warnings.mk should not be combined. --- nuttx-configs/PX4_Warnings.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nuttx-configs/PX4_Warnings.mk b/nuttx-configs/PX4_Warnings.mk index ad464181c0..27c9820da3 100644 --- a/nuttx-configs/PX4_Warnings.mk +++ b/nuttx-configs/PX4_Warnings.mk @@ -51,7 +51,7 @@ PX4_ARCHWARNINGS = -Wall \ # -Wconversion - would be nice, but too many "risky-but-safe" conversions in the code # -Wcast-align - would help catch bad casts in some cases, but generates too many false positives -PX4_ARCHCWARNINGS = $(ARCHWARNINGS) \ +PX4_ARCHCWARNINGS = \ -Wbad-function-cast \ -Wmissing-parameter-type \ -Wnested-externs \ @@ -66,6 +66,6 @@ PX4_ARCHCWARNINGS = $(ARCHWARNINGS) \ -Wno-pointer-sign \ -Wno-type-limits \ -PX4_ARCHWARNINGSXX = $(ARCHWARNINGS) \ +PX4_ARCHWARNINGSXX = \ -Wno-cpp \ -Wno-psabi