Tools: ardupilotwaf: add -Werror=return-type to all boards

This commit is contained in:
Peter Barker 2018-08-20 13:03:38 +10:00 committed by Randy Mackay
parent 9c6e75f45b
commit 5bd1f57a2a

View File

@ -87,6 +87,7 @@ class Board:
'-Wno-redundant-decls',
'-Wno-unknown-pragmas',
'-Wno-trigraphs',
'-Werror=return-type',
]
if 'clang' in cfg.env.COMPILER_CC:
@ -130,6 +131,7 @@ class Board:
'-Werror=array-bounds',
'-Werror=uninitialized',
'-Werror=init-self',
'-Werror=return-type',
'-Werror=switch',
'-Werror=sign-compare',
'-Wfatal-errors',