From 769df2ff47ce05f8de95b4d355f53f2f4cc550d3 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 8 Feb 2015 12:17:35 +0100 Subject: Toolchain: Add more compiler options, add note about -Wfloat-conversion warning (available with GCC 4.9). Needs work. --- makefiles/toolchain_gnu-arm-eabi.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3