diff --git a/src/lib/FlightTasks/CMakeLists.txt b/src/lib/FlightTasks/CMakeLists.txt index 499be46a47..eccc3ba4fb 100644 --- a/src/lib/FlightTasks/CMakeLists.txt +++ b/src/lib/FlightTasks/CMakeLists.txt @@ -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 diff --git a/src/modules/mavlink/CMakeLists.txt b/src/modules/mavlink/CMakeLists.txt index 1c7fe6061d..201d98ebf4 100644 --- a/src/modules/mavlink/CMakeLists.txt +++ b/src/modules/mavlink/CMakeLists.txt @@ -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 diff --git a/src/modules/mavlink/mavlink_tests/CMakeLists.txt b/src/modules/mavlink/mavlink_tests/CMakeLists.txt index 188d82c23e..f8e0068a1c 100644 --- a/src/modules/mavlink/mavlink_tests/CMakeLists.txt +++ b/src/modules/mavlink/mavlink_tests/CMakeLists.txt @@ -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 diff --git a/src/modules/simulator/CMakeLists.txt b/src/modules/simulator/CMakeLists.txt index 863d95c2f3..bffe0bbecb 100644 --- a/src/modules/simulator/CMakeLists.txt +++ b/src/modules/simulator/CMakeLists.txt @@ -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 diff --git a/src/modules/simulator/accelsim/CMakeLists.txt b/src/modules/simulator/accelsim/CMakeLists.txt index 5dece53969..d24e562327 100644 --- a/src/modules/simulator/accelsim/CMakeLists.txt +++ b/src/modules/simulator/accelsim/CMakeLists.txt @@ -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 diff --git a/src/modules/simulator/airspeedsim/CMakeLists.txt b/src/modules/simulator/airspeedsim/CMakeLists.txt index 0f6510d605..2227e5e875 100644 --- a/src/modules/simulator/airspeedsim/CMakeLists.txt +++ b/src/modules/simulator/airspeedsim/CMakeLists.txt @@ -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 diff --git a/src/modules/simulator/barosim/CMakeLists.txt b/src/modules/simulator/barosim/CMakeLists.txt index b711a792b3..0ad5c0a024 100644 --- a/src/modules/simulator/barosim/CMakeLists.txt +++ b/src/modules/simulator/barosim/CMakeLists.txt @@ -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 diff --git a/src/modules/simulator/gpssim/CMakeLists.txt b/src/modules/simulator/gpssim/CMakeLists.txt index 79b941fbd8..33c42b287d 100644 --- a/src/modules/simulator/gpssim/CMakeLists.txt +++ b/src/modules/simulator/gpssim/CMakeLists.txt @@ -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 diff --git a/src/modules/simulator/gyrosim/CMakeLists.txt b/src/modules/simulator/gyrosim/CMakeLists.txt index 04b18d1c5c..d9e26f6f13 100644 --- a/src/modules/simulator/gyrosim/CMakeLists.txt +++ b/src/modules/simulator/gyrosim/CMakeLists.txt @@ -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