Tools: add -Werror=suggest-override for gcc

This commit is contained in:
Peter Barker 2018-11-07 22:27:45 +11:00 committed by Andrew Tridgell
parent b61bfd663f
commit c339d18ee6
1 changed files with 5 additions and 0 deletions

View File

@ -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 += [