mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
mathlib Limits constexpr helpers don't use references (#11411)
- fixes #11408 - cleanup Limits.hpp
This commit is contained in:
@@ -79,6 +79,8 @@ function(px4_add_common_flags)
|
||||
-Wunknown-pragmas
|
||||
-Wunused-variable
|
||||
|
||||
#-Wcast-align # TODO: fix and enable
|
||||
|
||||
# disabled warnings
|
||||
-Wno-implicit-fallthrough # set appropriate level and update
|
||||
-Wno-missing-field-initializers
|
||||
@@ -97,7 +99,7 @@ function(px4_add_common_flags)
|
||||
add_compile_options(
|
||||
-Qunused-arguments
|
||||
|
||||
-Wno-address-of-packed-member
|
||||
-Wno-address-of-packed-member # TODO: fix and enable (mavlink, etc)
|
||||
-Wno-unknown-warning-option
|
||||
-Wno-unused-const-variable
|
||||
-Wno-varargs
|
||||
@@ -111,6 +113,10 @@ function(px4_add_common_flags)
|
||||
add_compile_options(-fdiagnostics-color=always)
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9)
|
||||
add_compile_options(-Wno-address-of-packed-member) # TODO: fix and enable (mavlink, etc)
|
||||
endif()
|
||||
|
||||
add_compile_options(
|
||||
-fno-builtin-printf
|
||||
-fno-strength-reduce
|
||||
|
||||
Reference in New Issue
Block a user