mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tools: waf: stop adding -Wno-error=suggest-override for CAN boards
This commit is contained in:
parent
a3bde4f054
commit
be173a9514
@ -190,12 +190,6 @@ def setup_can_build(cfg):
|
|||||||
'-DUAVCAN_STM32_NUM_IFACES=2'
|
'-DUAVCAN_STM32_NUM_IFACES=2'
|
||||||
]
|
]
|
||||||
|
|
||||||
(major, minor, patchlevel) = cfg.env.CC_VERSION
|
|
||||||
if int(major) >= 5 and int(minor) > 1:
|
|
||||||
env.CXXFLAGS += [
|
|
||||||
'-Wno-error=suggest-override',
|
|
||||||
]
|
|
||||||
|
|
||||||
env.DEFINES += [
|
env.DEFINES += [
|
||||||
'UAVCAN_CPP_VERSION=UAVCAN_CPP03',
|
'UAVCAN_CPP_VERSION=UAVCAN_CPP03',
|
||||||
'UAVCAN_NO_ASSERTIONS=1',
|
'UAVCAN_NO_ASSERTIONS=1',
|
||||||
|
Loading…
Reference in New Issue
Block a user