cmake enable -Wcast-align and disable per module

This commit is contained in:
Daniel Agar
2019-03-16 11:47:15 -04:00
parent 13dba60149
commit b35d048566
68 changed files with 129 additions and 65 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ px4_add_module(
MAIN adis16448
STACK_MAIN 1200
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
adis16448.cpp
DEPENDS
)
+1
View File
@@ -35,6 +35,7 @@ px4_add_module(
MAIN adis16477
STACK_MAIN 1200
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
ADIS16477.cpp
ADIS16477_gyro.cpp
+1
View File
@@ -35,6 +35,7 @@ px4_add_module(
MAIN adis16497
STACK_MAIN 1200
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
ADIS16497.cpp
ADIS16497_gyro.cpp
+1 -2
View File
@@ -34,8 +34,7 @@ px4_add_module(
MODULE drivers__bma180
MAIN bma180
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
bma180.cpp
DEPENDS
)
+2 -1
View File
@@ -34,9 +34,10 @@ px4_add_module(
MODULE drivers__bmi055
MAIN bmi055
STACK_MAIN 1500
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
BMI055_accel.cpp
BMI055_gyro.cpp
bmi055_main.cpp
)
+1 -2
View File
@@ -35,10 +35,9 @@ px4_add_module(
MAIN bmi160
STACK_MAIN 1200
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
bmi160.cpp
bmi160_gyro.cpp
bmi160_main.cpp
DEPENDS
)
+1 -1
View File
@@ -35,7 +35,7 @@ px4_add_module(
MAIN fxas21002c
STACK_MAIN 1500
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
fxas21002c.cpp
DEPENDS
)
+1 -1
View File
@@ -35,7 +35,7 @@ px4_add_module(
MAIN fxos8701cq
STACK_MAIN 1500
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
fxos8701cq.cpp
DEPENDS
)
+1 -2
View File
@@ -35,8 +35,7 @@ px4_add_module(
MAIN l3gd20
STACK_MAIN 1500
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
l3gd20.cpp
DEPENDS
)
+1 -2
View File
@@ -35,8 +35,7 @@ px4_add_module(
MAIN lsm303d
STACK_MAIN 1500
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
lsm303d.cpp
DEPENDS
)