mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 03:43:33 +08:00
Toolchain: Add more compiler options, add note about -Wfloat-conversion warning (available with GCC 4.9). Needs work.
This commit is contained in:
@@ -151,7 +151,10 @@ ARCHWARNINGS = -Wall \
|
|||||||
-Werror=unused-but-set-variable \
|
-Werror=unused-but-set-variable \
|
||||||
-Werror=unused-variable \
|
-Werror=unused-variable \
|
||||||
-Werror=double-promotion \
|
-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
|
# -Wcast-qual - generates spurious noreturn attribute warnings, try again later
|
||||||
# -Wconversion - would be nice, but too many "risky-but-safe" conversions in the code
|
# -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
|
# -Wcast-align - would help catch bad casts in some cases, but generates too many false positives
|
||||||
|
|||||||
Reference in New Issue
Block a user