aboutsummaryrefslogtreecommitdiff
path: root/makefiles
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-04-26 15:19:21 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-04-26 15:19:21 +0200
commit5ad3ff95bf0ebf67c2054f02ee534ef4c8e03b0a (patch)
tree301db980a61f6536339b6a1d699fc43b57aaa84b /makefiles
parentad1be765bf36a6068fda25e3c62c92e275aebc6b (diff)
parent4a949a9565b08bac24130b36bd677d9d08b7cdc8 (diff)
downloadpx4-firmware-5ad3ff95bf0ebf67c2054f02ee534ef4c8e03b0a.tar.gz
px4-firmware-5ad3ff95bf0ebf67c2054f02ee534ef4c8e03b0a.tar.bz2
px4-firmware-5ad3ff95bf0ebf67c2054f02ee534ef4c8e03b0a.zip
Merged master into ekf_params
Diffstat (limited to 'makefiles')
-rw-r--r--makefiles/toolchain_gnu-arm-eabi.mk11
1 files changed, 8 insertions, 3 deletions
diff --git a/makefiles/toolchain_gnu-arm-eabi.mk b/makefiles/toolchain_gnu-arm-eabi.mk
index bb729e103..b519e0e7a 100644
--- a/makefiles/toolchain_gnu-arm-eabi.mk
+++ b/makefiles/toolchain_gnu-arm-eabi.mk
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2012 PX4 Development Team. All rights reserved.
+# Copyright (C) 2012-2014 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
@@ -125,7 +125,11 @@ ARCHWARNINGS = -Wall \
-Wlogical-op \
-Wmissing-declarations \
-Wpacked \
- -Wno-unused-parameter
+ -Wno-unused-parameter \
+ -Werror=format-security \
+ -Werror=array-bounds \
+ -Wfatal-errors \
+ -Wformat=1
# -Wcast-qual - generates spurious noreturn attribute warnings, try again later
# -Wconversion - would be nice, but too many "risky-but-safe" conversions in the code
# -Wcast-align - would help catch bad casts in some cases, but generates too many false positives
@@ -142,7 +146,8 @@ ARCHCWARNINGS = $(ARCHWARNINGS) \
# C++-specific warnings
#
-ARCHWARNINGSXX = $(ARCHWARNINGS)
+ARCHWARNINGSXX = $(ARCHWARNINGS) \
+ -Wno-missing-field-initializers
# pull in *just* libm from the toolchain ... this is grody
LIBM := $(shell $(CC) $(ARCHCPUFLAGS) -print-file-name=libm.a)