diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-08 07:32:36 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-08 07:32:36 +0200 |
commit | 512584ed750d58e2f87c509ebe7f4cf36984ac3d (patch) | |
tree | 232e9b26a3014f777f0926ceeb76f0954a66f208 /makefiles | |
parent | 103b129f0d48bf84b6161a4b55cb8dd649b8c903 (diff) | |
parent | 680ebf29c3f8298e63d4c4d9c9076464e6f4b3c1 (diff) | |
download | px4-firmware-512584ed750d58e2f87c509ebe7f4cf36984ac3d.tar.gz px4-firmware-512584ed750d58e2f87c509ebe7f4cf36984ac3d.tar.bz2 px4-firmware-512584ed750d58e2f87c509ebe7f4cf36984ac3d.zip |
Merge pull request #1145 from DonLakeFlyer/MoreWarnings
Fix compiler warnings
Diffstat (limited to 'makefiles')
-rw-r--r-- | makefiles/toolchain_gnu-arm-eabi.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/makefiles/toolchain_gnu-arm-eabi.mk b/makefiles/toolchain_gnu-arm-eabi.mk index 808b635bb..d8d45d34e 100644 --- a/makefiles/toolchain_gnu-arm-eabi.mk +++ b/makefiles/toolchain_gnu-arm-eabi.mk @@ -139,7 +139,11 @@ ARCHWARNINGS = -Wall \ -Werror=format-security \ -Werror=array-bounds \ -Wfatal-errors \ - -Wformat=1 + -Wformat=1 \ + -Werror=unused-but-set-variable \ + -Werror=unused-variable \ + -Werror=double-promotion \ + -Werror=reorder # -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 |