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:
Mark Charlebois 2015-05-04 15:33:08 -07:00
parent 21a5dfc828
commit cfd96a8ab4
1 changed files with 2 additions and 0 deletions

View File

@ -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 \