From 040a5dffb9fa64fb5e51cadb9825d1f1650a8e0a Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Wed, 29 Sep 2021 10:31:35 +0200 Subject: [PATCH] Tools: fix missing warning on Clang --- Tools/ardupilotwaf/boards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 71e85377e7..099b6f18cf 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -270,9 +270,7 @@ class Board: '-Werror=parentheses', '-DARDUPILOT_BUILD', '-Wuninitialized', - '-Wmaybe-uninitialized', '-Warray-bounds', - '-Wduplicated-cond', ] if 'clang++' in cfg.env.COMPILER_CXX: @@ -315,6 +313,8 @@ class Board: if self.cc_version_gte(cfg, 7, 4): env.CXXFLAGS += [ '-Werror=implicit-fallthrough', + '-Wmaybe-uninitialized', + '-Wduplicated-cond', ] if cfg.options.Werror: