waf: add suggest-override even when building in uavcan

This commit is contained in:
Peter Barker 2019-08-16 08:09:21 +10:00 committed by Andrew Tridgell
parent 4802494d9d
commit 8106424611
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ class Board:
'-Werror=unused-but-set-variable' '-Werror=unused-but-set-variable'
] ]
(major, minor, patchlevel) = cfg.env.CC_VERSION (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 += [ env.CXXFLAGS += [
'-Werror=suggest-override', '-Werror=suggest-override',
] ]