Browse Source

NuttX add compiler dependent: disable no-stringop-truncation

sbg
David Sidrane 5 years ago committed by Daniel Agar
parent
commit
c49c767d78
  1. 3
      platforms/nuttx/NuttX/CMakeLists.txt
  2. 3
      platforms/nuttx/NuttX/Make.defs.in

3
platforms/nuttx/NuttX/CMakeLists.txt

@ -156,6 +156,9 @@ add_custom_command( @@ -156,6 +156,9 @@ add_custom_command(
)
add_custom_target(nuttx_copy_config_dir_target DEPENDS ${PX4_BINARY_DIR}/NuttX/nuttx_copy_config_dir.stamp)
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.3)
set(CMAKE_C_COMP_DEP_FLAGS -Wno-stringop-truncation)
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Make.defs.in ${NUTTX_DIR}/Make.defs)

3
platforms/nuttx/NuttX/Make.defs.in

@ -115,7 +115,8 @@ CFLAGS = $(ARCHINCLUDES) \ @@ -115,7 +115,8 @@ CFLAGS = $(ARCHINCLUDES) \
-Wno-nonnull-compare \
-Wno-old-style-declaration \
-Wno-sign-compare \
-Wno-type-limits
-Wno-type-limits \
${CMAKE_C_COMP_DEP_FLAGS}
CXXFLAGS = $(ARCHXXINCLUDES) \
-std=c++14 \

Loading…
Cancel
Save