Browse Source

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>
sbg
Mark Charlebois 10 years ago
parent
commit
cfd96a8ab4
  1. 2
      makefiles/toolchain_native.mk

2
makefiles/toolchain_native.mk

@ -124,6 +124,7 @@ ARCHDEFINES += -DCONFIG_ARCH_BOARD_$(CONFIG_BOARD) \ @@ -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 \ @@ -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…
Cancel
Save