NuttX and apps update 7.29

This commit is contained in:
Daniel Agar
2019-06-26 22:25:39 -04:00
parent fbd3386c39
commit dc10a68539
20 changed files with 93 additions and 35 deletions

View File

@@ -89,7 +89,7 @@ ifeq ($(CONFIG_ARMV7M_STACKCHECK),y)
endif
CFLAGS = $(ARCHINCLUDES) \
-std=gnu99 \
-std=gnu11 \
${CMAKE_C_FLAGS} \
$(FLAGS) \
-Wno-bad-function-cast \

View File

@@ -66,9 +66,6 @@ function(px4_os_add_flags)
${PX4_BINARY_DIR}/NuttX/apps/include
)
# NuttX's disables inline below C99 (comiler.h), but __STDC_VERSION__ isn't set for C++
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-D__STDC_VERSION__=199901L>)
# prevent using the toolchain's std c++ library
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-nostdinc++>)