mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08: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
|
# -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
|
# -Wcast-align - would help catch bad casts in some cases, but generates too many false positives
|
||||||
|
|
||||||
PX4_ARCHCWARNINGS = $(ARCHWARNINGS) \
|
PX4_ARCHCWARNINGS = \
|
||||||
-Wbad-function-cast \
|
-Wbad-function-cast \
|
||||||
-Wmissing-parameter-type \
|
-Wmissing-parameter-type \
|
||||||
-Wnested-externs \
|
-Wnested-externs \
|
||||||
@@ -66,6 +66,6 @@ PX4_ARCHCWARNINGS = $(ARCHWARNINGS) \
|
|||||||
-Wno-pointer-sign \
|
-Wno-pointer-sign \
|
||||||
-Wno-type-limits \
|
-Wno-type-limits \
|
||||||
|
|
||||||
PX4_ARCHWARNINGSXX = $(ARCHWARNINGS) \
|
PX4_ARCHWARNINGSXX = \
|
||||||
-Wno-cpp \
|
-Wno-cpp \
|
||||||
-Wno-psabi
|
-Wno-psabi
|
||||||
|
|||||||
Reference in New Issue
Block a user