forked from Archive/PX4-Autopilot
POSIX: Added missing include path and -Wno-packed flag
The changes to the simulator added an include of mavlink/include/v1.0/... to simulator.h which was not in the included paths. The included header file also causes clang to issue a -Wpacked warning that had to be silenced. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
parent
21a5dfc828
commit
cfd96a8ab4
|
@ -124,6 +124,7 @@ ARCHDEFINES += -DCONFIG_ARCH_BOARD_$(CONFIG_BOARD) \
|
|||
-Dnoreturn_function= \
|
||||
-I$(PX4_BASE)/src/lib/eigen \
|
||||
-I$(PX4_BASE)/src/platforms/posix/include \
|
||||
-I$(PX4_BASE)/mavlink/include/mavlink \
|
||||
-Wno-error=shadow
|
||||
|
||||
# optimisation flags
|
||||
|
@ -157,6 +158,7 @@ ARCHWARNINGS = -Wall \
|
|||
-Wpacked \
|
||||
-Wno-unused-parameter \
|
||||
-Wno-gnu-array-member-paren-init \
|
||||
-Wno-packed \
|
||||
-Werror=format-security \
|
||||
-Werror=array-bounds \
|
||||
-Wfatal-errors \
|
||||
|
|
Loading…
Reference in New Issue