mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 00:03:33 +08:00
cmake enable -Wcast-align and disable per module
This commit is contained in:
@@ -35,8 +35,7 @@ px4_add_module(
|
||||
MAIN bmm150
|
||||
STACK_MAIN 1200
|
||||
COMPILE_FLAGS
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
SRCS
|
||||
bmm150.cpp
|
||||
DEPENDS
|
||||
)
|
||||
|
||||
|
||||
@@ -35,10 +35,9 @@ px4_add_module(
|
||||
MAIN hmc5883
|
||||
STACK_MAIN 1500
|
||||
COMPILE_FLAGS
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
SRCS
|
||||
hmc5883_i2c.cpp
|
||||
hmc5883_spi.cpp
|
||||
hmc5883.cpp
|
||||
DEPENDS
|
||||
)
|
||||
|
||||
|
||||
@@ -33,8 +33,9 @@
|
||||
px4_add_module(
|
||||
MODULE drivers__ist8310
|
||||
MAIN ist8310
|
||||
COMPILE_FLAGS
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
STACK_MAIN 1500
|
||||
SRCS
|
||||
ist8310.cpp
|
||||
)
|
||||
|
||||
|
||||
@@ -35,11 +35,10 @@ px4_add_module(
|
||||
MAIN lis3mdl
|
||||
STACK_MAIN 1200
|
||||
COMPILE_FLAGS
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
SRCS
|
||||
lis3mdl_i2c.cpp
|
||||
lis3mdl_spi.cpp
|
||||
lis3mdl_main.cpp
|
||||
lis3mdl.cpp
|
||||
DEPENDS
|
||||
)
|
||||
|
||||
|
||||
@@ -35,9 +35,9 @@ px4_add_module(
|
||||
MAIN qmc5883
|
||||
STACK_MAIN 1500
|
||||
COMPILE_FLAGS
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
SRCS
|
||||
qmc5883_i2c.cpp
|
||||
qmc5883_spi.cpp
|
||||
qmc5883.cpp
|
||||
DEPENDS
|
||||
)
|
||||
|
||||
@@ -35,10 +35,10 @@ px4_add_module(
|
||||
MAIN rm3100
|
||||
STACK_MAIN 1200
|
||||
COMPILE_FLAGS
|
||||
-Wno-cast-align # TODO: fix and enable
|
||||
SRCS
|
||||
rm3100_i2c.cpp
|
||||
rm3100_spi.cpp
|
||||
rm3100_main.cpp
|
||||
rm3100.cpp
|
||||
DEPENDS
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user