mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 15:41:36 +08:00
NuttX: silence warnings -Wimplicit-fallthrough and -Wnonnull-compare
This commit is contained in:
committed by
Daniel Agar
parent
9fb98dad3e
commit
bcceadcb85
@@ -43,13 +43,16 @@ PX4_ARCHWARNINGS = -Wall \
|
|||||||
-Wpointer-arith \
|
-Wpointer-arith \
|
||||||
-Wshadow \
|
-Wshadow \
|
||||||
-Wno-sign-compare \
|
-Wno-sign-compare \
|
||||||
-Wno-unused-parameter
|
-Wno-unused-parameter \
|
||||||
#-Wno-nonnull-compare \ # re-enable GCC >= 6
|
-Wno-nonnull-compare \
|
||||||
|
-Wno-implicit-fallthrough
|
||||||
#-Wno-misleading-indentation # re-enable GCC >= 6
|
#-Wno-misleading-indentation # re-enable GCC >= 6
|
||||||
|
|
||||||
# -Wcast-qual - generates spurious noreturn attribute warnings, try again later
|
# -Wimplicit-fallthrough - generates compilation errors with GCC >= 7
|
||||||
# -Wconversion - would be nice, but too many "risky-but-safe" conversions in the code
|
# -Wnonnull-compare - generates compilation errors with GCC >= 7
|
||||||
# -Wcast-align - would help catch bad casts in some cases, but generates too many false positives
|
# -Wcast-qual - generates spurious noreturn attribute warnings, try again later
|
||||||
|
# -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 = \
|
PX4_ARCHCWARNINGS = \
|
||||||
-Wbad-function-cast \
|
-Wbad-function-cast \
|
||||||
|
|||||||
Reference in New Issue
Block a user