From bcceadcb85b293046166ed7898c96b7dbf9acd30 Mon Sep 17 00:00:00 2001 From: Julien Lecoeur Date: Tue, 5 Dec 2017 20:42:22 +0100 Subject: [PATCH] NuttX: silence warnings -Wimplicit-fallthrough and -Wnonnull-compare --- nuttx-configs/PX4_Warnings.mk | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/nuttx-configs/PX4_Warnings.mk b/nuttx-configs/PX4_Warnings.mk index 99f0581e5a..3f44fd22d7 100644 --- a/nuttx-configs/PX4_Warnings.mk +++ b/nuttx-configs/PX4_Warnings.mk @@ -43,13 +43,16 @@ PX4_ARCHWARNINGS = -Wall \ -Wpointer-arith \ -Wshadow \ -Wno-sign-compare \ - -Wno-unused-parameter - #-Wno-nonnull-compare \ # re-enable GCC >= 6 + -Wno-unused-parameter \ + -Wno-nonnull-compare \ + -Wno-implicit-fallthrough #-Wno-misleading-indentation # re-enable GCC >= 6 -# -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 +# -Wimplicit-fallthrough - generates compilation errors with GCC >= 7 +# -Wnonnull-compare - generates compilation errors with GCC >= 7 +# -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 = \ -Wbad-function-cast \