mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
waf: add -Werror=use-after-free to CFLAGS and CXXFLAGS
This commit is contained in:
parent
c6491d6b45
commit
35a8a04787
@ -439,6 +439,13 @@ class Board:
|
||||
env.CXXFLAGS += [
|
||||
'-Werror=sizeof-pointer-div',
|
||||
]
|
||||
if self.cc_version_gte(cfg, 13, 2):
|
||||
env.CXXFLAGS += [
|
||||
'-Werror=use-after-free',
|
||||
]
|
||||
env.CFLAGS += [
|
||||
'-Werror=use-after-free',
|
||||
]
|
||||
|
||||
if cfg.options.Werror:
|
||||
errors = ['-Werror',
|
||||
|
Loading…
Reference in New Issue
Block a user