mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Tools: add -Werror=suggest-override for gcc
This commit is contained in:
parent
b61bfd663f
commit
c339d18ee6
@ -225,6 +225,11 @@ class Board:
|
|||||||
env.CXXFLAGS += [
|
env.CXXFLAGS += [
|
||||||
'-Werror=unused-but-set-variable'
|
'-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:
|
if cfg.env.DEBUG:
|
||||||
env.CXXFLAGS += [
|
env.CXXFLAGS += [
|
||||||
|
Loading…
Reference in New Issue
Block a user