mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 06:33:33 +08:00
Fixed gcc 4.8 warnings
Disabled gcc warnings that are tripped by Eigen. Removed signal code that is not needed in Linux port and was causing gcc warnings. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -61,7 +61,7 @@ CLANGVER=
|
||||
endif
|
||||
endif
|
||||
|
||||
#USE_GCC=1
|
||||
USE_GCC=0
|
||||
|
||||
ifeq ($(USE_GCC),1)
|
||||
# GCC Options:
|
||||
@@ -162,6 +162,8 @@ ARCHWARNINGS += -Wdouble-promotion \
|
||||
-Wlogical-op \
|
||||
-Wformat=1 \
|
||||
-Werror=unused-but-set-variable \
|
||||
-Wno-error=unused-local-typedefs \
|
||||
-Wno-error=enum-compare \
|
||||
-Werror=double-promotion
|
||||
ARCHOPTIMIZATION += -fno-strength-reduce
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user