From 810642461154be296002b154a262111245fd2f5f Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 16 Aug 2019 08:09:21 +1000 Subject: [PATCH] waf: add suggest-override even when building in uavcan --- Tools/ardupilotwaf/boards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index d49af8031a..31b50462a5 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -228,7 +228,7 @@ class Board: '-Werror=unused-but-set-variable' ] (major, minor, patchlevel) = cfg.env.CC_VERSION - if int(major) >= 5 and int(minor) > 1 and not self.with_uavcan: + if int(major) > 5 or (int(major) == 5 and int(minor) > 1): env.CXXFLAGS += [ '-Werror=suggest-override', ]