From cfd96a8ab490f9d447b16798c7e4c3ec7413e4a4 Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Mon, 4 May 2015 15:33:08 -0700 Subject: [PATCH] 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 --- makefiles/toolchain_native.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/makefiles/toolchain_native.mk b/makefiles/toolchain_native.mk index 763b25ce86..dd80e9a6ea 100644 --- a/makefiles/toolchain_native.mk +++ b/makefiles/toolchain_native.mk @@ -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 \