Browse Source

waf: add suggest-override even when building in uavcan

mission-4.1.18
Peter Barker 6 years ago committed by Andrew Tridgell
parent
commit
52cb509f11
  1. 2
      Tools/ardupilotwaf/boards.py

2
Tools/ardupilotwaf/boards.py

@ -228,7 +228,7 @@ class Board: @@ -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',
]

Loading…
Cancel
Save