aboutsummaryrefslogtreecommitdiff
path: root/makefiles/toolchain_gnu-arm-eabi.mk
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-02-08 12:17:35 +0100
committerLorenz Meier <lm@inf.ethz.ch>2015-02-08 12:17:35 +0100
commit769df2ff47ce05f8de95b4d355f53f2f4cc550d3 (patch)
treeef3b1c61beb06eeb426e1d780a20a4a7b4b35133 /makefiles/toolchain_gnu-arm-eabi.mk
parent2860492e1be6b04e7637c4baad6dc85133f54900 (diff)
downloadpx4-firmware-769df2ff47ce05f8de95b4d355f53f2f4cc550d3.tar.gz
px4-firmware-769df2ff47ce05f8de95b4d355f53f2f4cc550d3.tar.bz2
px4-firmware-769df2ff47ce05f8de95b4d355f53f2f4cc550d3.zip
Toolchain: Add more compiler options, add note about -Wfloat-conversion warning (available with GCC 4.9). Needs work.
Diffstat (limited to 'makefiles/toolchain_gnu-arm-eabi.mk')
-rw-r--r--makefiles/toolchain_gnu-arm-eabi.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/makefiles/toolchain_gnu-arm-eabi.mk b/makefiles/toolchain_gnu-arm-eabi.mk
index dc8d3f712..2c5302812 100644
--- a/makefiles/toolchain_gnu-arm-eabi.mk
+++ b/makefiles/toolchain_gnu-arm-eabi.mk
@@ -151,7 +151,10 @@ ARCHWARNINGS = -Wall \
-Werror=unused-but-set-variable \
-Werror=unused-variable \
-Werror=double-promotion \
- -Werror=reorder
+ -Werror=reorder \
+ -Werror=uninitialized \
+ -Werror=init-self
+# -Werror=float-conversion - works, just needs to be phased in with some effort and needs GCC 4.9+
# -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