mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-22 00:10:35 +08:00
parameters: tinybson fill total document length for bson compatibility
This commit is contained in:
@@ -95,21 +95,17 @@ function(px4_add_common_flags)
|
||||
# compiler specific flags
|
||||
if (("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") OR ("${CMAKE_CXX_COMPILER_ID}" MATCHES "AppleClang"))
|
||||
|
||||
# force color for clang (needed for clang + ccache)
|
||||
add_compile_options(-fcolor-diagnostics)
|
||||
# force absolute paths
|
||||
add_compile_options(-fdiagnostics-absolute-paths)
|
||||
add_compile_options(
|
||||
-fcolor-diagnostics # force color for clang (needed for clang + ccache)
|
||||
-fdiagnostics-absolute-paths # force absolute paths
|
||||
|
||||
# QuRT 6.4.X compiler identifies as Clang but does not support this option
|
||||
if (NOT "${PX4_PLATFORM}" STREQUAL "qurt")
|
||||
add_compile_options(
|
||||
-Qunused-arguments
|
||||
-Qunused-arguments
|
||||
|
||||
-Wno-unknown-warning-option
|
||||
-Wno-unused-const-variable
|
||||
-Wno-varargs
|
||||
)
|
||||
endif()
|
||||
-Wno-c99-designator
|
||||
-Wno-unknown-warning-option
|
||||
-Wno-unused-const-variable
|
||||
-Wno-varargs
|
||||
)
|
||||
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user