mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
waf: add -Werror=parentheses
This warns on some of our compilers in CI, but doesn't flag it as an error ATM
This commit is contained in:
parent
f385a4a329
commit
82dd2438b9
@ -93,6 +93,7 @@ class Board:
|
|||||||
'-Werror=narrowing',
|
'-Werror=narrowing',
|
||||||
'-Werror=attributes',
|
'-Werror=attributes',
|
||||||
'-Werror=overflow',
|
'-Werror=overflow',
|
||||||
|
'-Werror=parentheses',
|
||||||
'-Werror=format-extra-args',
|
'-Werror=format-extra-args',
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -175,6 +176,7 @@ class Board:
|
|||||||
'-Werror=unused-variable',
|
'-Werror=unused-variable',
|
||||||
'-Wfatal-errors',
|
'-Wfatal-errors',
|
||||||
'-Wno-trigraphs',
|
'-Wno-trigraphs',
|
||||||
|
'-Werror=parentheses',
|
||||||
]
|
]
|
||||||
|
|
||||||
if 'clang++' in cfg.env.COMPILER_CXX:
|
if 'clang++' in cfg.env.COMPILER_CXX:
|
||||||
|
Loading…
Reference in New Issue
Block a user