mirror of https://github.com/ArduPilot/ardupilot
Tools: add -Werror=suggest-override for gcc
This commit is contained in:
parent
b61bfd663f
commit
c339d18ee6
|
@ -225,6 +225,11 @@ class Board:
|
|||
env.CXXFLAGS += [
|
||||
'-Werror=unused-but-set-variable'
|
||||
]
|
||||
(major, minor, patchlevel) = cfg.env.CC_VERSION
|
||||
if int(major) >= 5 and int(minor) > 1:
|
||||
env.CXXFLAGS += [
|
||||
'-Werror=suggest-override',
|
||||
]
|
||||
|
||||
if cfg.env.DEBUG:
|
||||
env.CXXFLAGS += [
|
||||
|
|
Loading…
Reference in New Issue