forked from Archive/PX4-Autopilot
modules/lib: ignore address-of-packed-member
For now we need to ignore this warning which GCC 9 shows for the MAVLink headers.
This commit is contained in:
parent
b20feacdb5
commit
9d8015d029
|
@ -104,7 +104,9 @@ add_custom_command(
|
|||
# Create Flight Tasks Library
|
||||
###########################################
|
||||
|
||||
add_compile_options(-Wno-cast-align) # TODO: fix and enable
|
||||
add_compile_options(
|
||||
-Wno-cast-align
|
||||
) # TODO: fix and enable
|
||||
|
||||
px4_add_library(FlightTasks
|
||||
FlightTasks.cpp
|
||||
|
|
|
@ -40,6 +40,7 @@ px4_add_module(
|
|||
STACK_MAX 1600
|
||||
COMPILE_FLAGS
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
-Wno-address-of-packed-member # TODO: fix in c_library_v2
|
||||
INCLUDES
|
||||
${PX4_SOURCE_DIR}/mavlink/include/mavlink
|
||||
SRCS
|
||||
|
|
|
@ -43,6 +43,7 @@ px4_add_module(
|
|||
-DMavlinkStream=MavlinkStreamTest
|
||||
-DMavlinkFTP=MavlinkFTPTest
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
-Wno-address-of-packed-member # TODO: fix in c_library_v2
|
||||
SRCS
|
||||
mavlink_tests.cpp
|
||||
mavlink_ftp_test.cpp
|
||||
|
|
|
@ -61,6 +61,7 @@ px4_add_module(
|
|||
COMPILE_FLAGS
|
||||
-Wno-double-promotion
|
||||
-Wno-cast-align
|
||||
-Wno-address-of-packed-member # TODO: fix in c_library_v2
|
||||
INCLUDES
|
||||
${PX4_SOURCE_DIR}/mavlink/include/mavlink
|
||||
SRCS
|
||||
|
|
|
@ -37,6 +37,7 @@ px4_add_module(
|
|||
COMPILE_FLAGS
|
||||
-Wno-double-promotion
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
-Wno-address-of-packed-member # TODO: fix in c_library_v2
|
||||
SRCS
|
||||
accelsim.cpp
|
||||
DEPENDS
|
||||
|
|
|
@ -37,6 +37,7 @@ px4_add_module(
|
|||
COMPILE_FLAGS
|
||||
-Wno-double-promotion
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
-Wno-address-of-packed-member # TODO: fix in c_library_v2
|
||||
SRCS
|
||||
airspeedsim.cpp
|
||||
meas_airspeed_sim.cpp
|
||||
|
|
|
@ -37,6 +37,7 @@ px4_add_module(
|
|||
COMPILE_FLAGS
|
||||
-Wno-double-promotion
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
-Wno-address-of-packed-member # TODO: fix in c_library_v2
|
||||
SRCS
|
||||
baro.cpp
|
||||
DEPENDS
|
||||
|
|
|
@ -37,6 +37,7 @@ px4_add_module(
|
|||
COMPILE_FLAGS
|
||||
-Wno-double-promotion
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
-Wno-address-of-packed-member # TODO: fix in c_library_v2
|
||||
SRCS
|
||||
gpssim.cpp
|
||||
DEPENDS
|
||||
|
|
|
@ -37,6 +37,7 @@ px4_add_module(
|
|||
COMPILE_FLAGS
|
||||
-Wno-double-promotion
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
-Wno-address-of-packed-member # TODO: fix in c_library_v2
|
||||
STACK_MAIN 1200
|
||||
SRCS
|
||||
gyrosim.cpp
|
||||
|
|
Loading…
Reference in New Issue