mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 23:53:33 +08:00
cmake enable -Wcast-align and disable per module
This commit is contained in:
@@ -60,6 +60,7 @@ px4_add_module(
|
||||
MAIN simulator
|
||||
COMPILE_FLAGS
|
||||
-Wno-double-promotion
|
||||
-Wno-cast-align
|
||||
INCLUDES
|
||||
${PX4_SOURCE_DIR}/mavlink/include/mavlink
|
||||
SRCS
|
||||
|
||||
@@ -36,6 +36,7 @@ px4_add_module(
|
||||
MAIN accelsim
|
||||
COMPILE_FLAGS
|
||||
-Wno-double-promotion
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
SRCS
|
||||
accelsim.cpp
|
||||
DEPENDS
|
||||
|
||||
@@ -36,6 +36,7 @@ px4_add_module(
|
||||
MAIN measairspeedsim
|
||||
COMPILE_FLAGS
|
||||
-Wno-double-promotion
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
SRCS
|
||||
airspeedsim.cpp
|
||||
meas_airspeed_sim.cpp
|
||||
|
||||
@@ -36,6 +36,7 @@ px4_add_module(
|
||||
MAIN barosim
|
||||
COMPILE_FLAGS
|
||||
-Wno-double-promotion
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
SRCS
|
||||
baro.cpp
|
||||
DEPENDS
|
||||
|
||||
@@ -36,6 +36,7 @@ px4_add_module(
|
||||
MAIN gpssim
|
||||
COMPILE_FLAGS
|
||||
-Wno-double-promotion
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
SRCS
|
||||
gpssim.cpp
|
||||
DEPENDS
|
||||
|
||||
@@ -36,6 +36,7 @@ px4_add_module(
|
||||
MAIN gyrosim
|
||||
COMPILE_FLAGS
|
||||
-Wno-double-promotion
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
STACK_MAIN 1200
|
||||
SRCS
|
||||
gyrosim.cpp
|
||||
|
||||
Reference in New Issue
Block a user