mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
build: added more warnings and errors to SITL build
more closely match PX4 build
This commit is contained in:
parent
8f41d97548
commit
698312a32c
@ -11,7 +11,15 @@ DEFINES += $(EXTRAFLAGS)
|
||||
DEFINES += -DCONFIG_HAL_BOARD=$(HAL_BOARD) -DCONFIG_HAL_BOARD_SUBTYPE=$(HAL_BOARD_SUBTYPE)
|
||||
WARNFLAGS = -Wformat -Wall -Wshadow -Wpointer-arith -Wcast-align -Wno-unused-parameter -Wno-missing-field-initializers
|
||||
WARNFLAGS += -Wwrite-strings -Wformat=2
|
||||
WARNFLAGSCXX = -Wno-reorder
|
||||
WARNFLAGSCXX = -Wno-reorder \
|
||||
-Werror=unused-but-set-variable
|
||||
-Werror=format-security \
|
||||
-Werror=array-bounds \
|
||||
-Wfatal-errors \
|
||||
-Werror=unused-but-set-variable \
|
||||
-Werror=uninitialized \
|
||||
-Werror=init-self \
|
||||
-Wno-missing-field-initializers
|
||||
DEPFLAGS = -MD -MT $@
|
||||
|
||||
CXXOPTS = -ffunction-sections -fdata-sections -fno-exceptions -fsigned-char
|
||||
|
Loading…
Reference in New Issue
Block a user