mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
PX4 add compiler dependent: disable no-stringop-truncation
This commit is contained in:
committed by
Daniel Agar
parent
c49c767d78
commit
e3e7cb4158
@@ -89,6 +89,7 @@ function(px4_add_common_flags)
|
||||
-Wno-missing-field-initializers
|
||||
-Wno-missing-include-dirs # TODO: fix and enable
|
||||
-Wno-unused-parameter
|
||||
|
||||
)
|
||||
|
||||
# compiler specific flags
|
||||
@@ -117,6 +118,10 @@ function(px4_add_common_flags)
|
||||
add_compile_options(-fdiagnostics-color=always)
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.3)
|
||||
add_compile_options(-Wno-stringop-truncation)
|
||||
endif()
|
||||
|
||||
add_compile_options(
|
||||
-fno-builtin-printf
|
||||
-fno-strength-reduce
|
||||
|
||||
Reference in New Issue
Block a user