cmake enable -Wcast-align and disable per module

This commit is contained in:
Daniel Agar
2019-03-16 11:23:17 -04:00
parent 13dba60149
commit b35d048566
68 changed files with 129 additions and 65 deletions
+1
View File
@@ -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
+1
View File
@@ -35,6 +35,7 @@ px4_add_module(
MAIN dataman
STACK_MAIN 1200
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
dataman.cpp
)
+1
View File
@@ -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
+1
View File
@@ -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
+2
View File
@@ -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
+1
View File
@@ -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