mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-18 22:20:34 +08:00
cmake enable -Wcast-align and disable per module
This commit is contained in:
@@ -39,6 +39,7 @@ px4_add_module(
|
||||
STACK_MAIN 4096
|
||||
STACK_MAX 2450
|
||||
COMPILE_FLAGS
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
SRCS
|
||||
accelerometer_calibration.cpp
|
||||
airspeed_calibration.cpp
|
||||
|
||||
@@ -35,6 +35,7 @@ px4_add_module(
|
||||
MAIN dataman
|
||||
STACK_MAIN 1200
|
||||
COMPILE_FLAGS
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
SRCS
|
||||
dataman.cpp
|
||||
)
|
||||
|
||||
@@ -37,6 +37,7 @@ px4_add_module(
|
||||
PRIORITY "SCHED_PRIORITY_MAX-30"
|
||||
STACK_MAIN 2200
|
||||
COMPILE_FLAGS
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
SRCS
|
||||
logger.cpp
|
||||
log_writer.cpp
|
||||
|
||||
@@ -39,6 +39,7 @@ px4_add_module(
|
||||
STACK_MAIN 1600
|
||||
STACK_MAX 1600
|
||||
COMPILE_FLAGS
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
INCLUDES
|
||||
${PX4_SOURCE_DIR}/mavlink/include/mavlink
|
||||
SRCS
|
||||
|
||||
@@ -42,6 +42,7 @@ px4_add_module(
|
||||
#-DMAVLINK_FTP_DEBUG
|
||||
-DMavlinkStream=MavlinkStreamTest
|
||||
-DMavlinkFTP=MavlinkFTPTest
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
SRCS
|
||||
mavlink_tests.cpp
|
||||
mavlink_ftp_test.cpp
|
||||
|
||||
@@ -35,6 +35,8 @@ include(hexagon_sdk)
|
||||
px4_add_module(
|
||||
MODULE modules__muorb__krait
|
||||
MAIN muorb
|
||||
COMPILE_FLAGS
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
INCLUDES
|
||||
${HEXAGON_SDK_INCLUDES}
|
||||
${PX4_BINARY_DIR}/platforms/posix
|
||||
|
||||
@@ -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