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.
This commit is contained in:
David Sidrane 2017-04-17 14:30:51 -10:00
parent 0ba99df55e
commit 566d73ec22
1 changed files with 2 additions and 2 deletions

View File

@ -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