Skip to content
Snippets Groups Projects
Commit 9d8015d0 authored by Julian Oes's avatar Julian Oes Committed by Beat Küng
Browse files

modules/lib: ignore address-of-packed-member

For now we need to ignore this warning which GCC 9 shows for the MAVLink
headers.
parent b20feacd
No related branches found
No related tags found
No related merge requests found
...@@ -104,7 +104,9 @@ add_custom_command( ...@@ -104,7 +104,9 @@ add_custom_command(
# Create Flight Tasks Library # 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 px4_add_library(FlightTasks
FlightTasks.cpp FlightTasks.cpp
......
...@@ -40,6 +40,7 @@ px4_add_module( ...@@ -40,6 +40,7 @@ px4_add_module(
STACK_MAX 1600 STACK_MAX 1600
COMPILE_FLAGS COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable -Wno-cast-align # TODO: fix and enable
-Wno-address-of-packed-member # TODO: fix in c_library_v2
INCLUDES INCLUDES
${PX4_SOURCE_DIR}/mavlink/include/mavlink ${PX4_SOURCE_DIR}/mavlink/include/mavlink
SRCS SRCS
......
...@@ -43,6 +43,7 @@ px4_add_module( ...@@ -43,6 +43,7 @@ px4_add_module(
-DMavlinkStream=MavlinkStreamTest -DMavlinkStream=MavlinkStreamTest
-DMavlinkFTP=MavlinkFTPTest -DMavlinkFTP=MavlinkFTPTest
-Wno-cast-align # TODO: fix and enable -Wno-cast-align # TODO: fix and enable
-Wno-address-of-packed-member # TODO: fix in c_library_v2
SRCS SRCS
mavlink_tests.cpp mavlink_tests.cpp
mavlink_ftp_test.cpp mavlink_ftp_test.cpp
......
...@@ -61,6 +61,7 @@ px4_add_module( ...@@ -61,6 +61,7 @@ px4_add_module(
COMPILE_FLAGS COMPILE_FLAGS
-Wno-double-promotion -Wno-double-promotion
-Wno-cast-align -Wno-cast-align
-Wno-address-of-packed-member # TODO: fix in c_library_v2
INCLUDES INCLUDES
${PX4_SOURCE_DIR}/mavlink/include/mavlink ${PX4_SOURCE_DIR}/mavlink/include/mavlink
SRCS SRCS
......
...@@ -37,6 +37,7 @@ px4_add_module( ...@@ -37,6 +37,7 @@ px4_add_module(
COMPILE_FLAGS COMPILE_FLAGS
-Wno-double-promotion -Wno-double-promotion
-Wno-cast-align # TODO: fix and enable -Wno-cast-align # TODO: fix and enable
-Wno-address-of-packed-member # TODO: fix in c_library_v2
SRCS SRCS
accelsim.cpp accelsim.cpp
DEPENDS DEPENDS
......
...@@ -37,6 +37,7 @@ px4_add_module( ...@@ -37,6 +37,7 @@ px4_add_module(
COMPILE_FLAGS COMPILE_FLAGS
-Wno-double-promotion -Wno-double-promotion
-Wno-cast-align # TODO: fix and enable -Wno-cast-align # TODO: fix and enable
-Wno-address-of-packed-member # TODO: fix in c_library_v2
SRCS SRCS
airspeedsim.cpp airspeedsim.cpp
meas_airspeed_sim.cpp meas_airspeed_sim.cpp
......
...@@ -37,6 +37,7 @@ px4_add_module( ...@@ -37,6 +37,7 @@ px4_add_module(
COMPILE_FLAGS COMPILE_FLAGS
-Wno-double-promotion -Wno-double-promotion
-Wno-cast-align # TODO: fix and enable -Wno-cast-align # TODO: fix and enable
-Wno-address-of-packed-member # TODO: fix in c_library_v2
SRCS SRCS
baro.cpp baro.cpp
DEPENDS DEPENDS
......
...@@ -37,6 +37,7 @@ px4_add_module( ...@@ -37,6 +37,7 @@ px4_add_module(
COMPILE_FLAGS COMPILE_FLAGS
-Wno-double-promotion -Wno-double-promotion
-Wno-cast-align # TODO: fix and enable -Wno-cast-align # TODO: fix and enable
-Wno-address-of-packed-member # TODO: fix in c_library_v2
SRCS SRCS
gpssim.cpp gpssim.cpp
DEPENDS DEPENDS
......
...@@ -37,6 +37,7 @@ px4_add_module( ...@@ -37,6 +37,7 @@ px4_add_module(
COMPILE_FLAGS COMPILE_FLAGS
-Wno-double-promotion -Wno-double-promotion
-Wno-cast-align # TODO: fix and enable -Wno-cast-align # TODO: fix and enable
-Wno-address-of-packed-member # TODO: fix in c_library_v2
STACK_MAIN 1200 STACK_MAIN 1200
SRCS SRCS
gyrosim.cpp gyrosim.cpp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment