mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 00:43:35 +08:00
mavlink update to latest and enable address-of-packed-member warning
This commit is contained in:
@@ -99,7 +99,6 @@ function(px4_add_common_flags)
|
||||
add_compile_options(
|
||||
-Qunused-arguments
|
||||
|
||||
-Wno-address-of-packed-member # TODO: fix and enable (mavlink, etc)
|
||||
-Wno-unknown-warning-option
|
||||
-Wno-unused-const-variable
|
||||
-Wno-varargs
|
||||
@@ -113,10 +112,6 @@ 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