diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 2c2aa89ad7..832cd187dd 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -249,6 +249,9 @@ class Board: env.CXXFLAGS += [ '-Werror=implicit-fallthrough', ] + env.CXXFLAGS += [ + '-fcheck-new', + ] if cfg.env.DEBUG: env.CFLAGS += [