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
@@ -34,9 +34,10 @@ px4_add_module(
MODULE drivers__leddar_one
MAIN leddar_one
STACK_MAIN 1200
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
leddar_one.cpp
MODULE_CONFIG
module.yaml
DEPENDS
)
@@ -34,11 +34,10 @@ px4_add_module(
MODULE drivers__ll40ls
MAIN ll40ls
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
ll40ls.cpp
LidarLite.cpp
LidarLiteI2C.cpp
LidarLitePWM.cpp
DEPENDS
)
@@ -34,8 +34,7 @@ px4_add_module(
MODULE drivers__mb12xx
MAIN mb12xx
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
mb12xx.cpp
DEPENDS
)
@@ -33,6 +33,8 @@
px4_add_module(
MODULE drivers__sf0x
MAIN sf0x
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
sf0x.cpp
sf0x_parser.cpp
@@ -31,10 +31,10 @@
#
############################################################################
px4_add_module(
MODULE drivers__sf1xx
MAIN sf1xx
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
sf1xx.cpp
DEPENDS
@@ -34,8 +34,7 @@ px4_add_module(
MODULE drivers__srf02
MAIN srf02
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
srf02.cpp
DEPENDS
)
@@ -35,6 +35,7 @@ px4_add_module(
MAIN teraranger
STACK_MAIN 1200
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
teraranger.cpp
DEPENDS
@@ -34,11 +34,10 @@ px4_add_module(
MODULE drivers__tfmini
MAIN tfmini
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
tfmini.cpp
tfmini_parser.cpp
MODULE_CONFIG
module.yaml
DEPENDS
)
@@ -1,7 +1,41 @@
############################################################################
#
# Copyright (c) 2019 PX4 Development Team. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
# 3. Neither the name PX4 nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_module(
MODULE drivers__vl53lxx
MAIN vl53lxx
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
SRCS
vl53lxx.cpp
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :