mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user