mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 00:13:34 +08:00
GCC fixes for warnings
GCC was more picky about prototypes for inlines being required. The generate_listener.py script used incorrect printf formats and was casting %f params to float, but printf casts all %f params to double per the spec. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -157,7 +157,6 @@ ARCHWARNINGS = -Wall \
|
||||
-Wmissing-declarations \
|
||||
-Wpacked \
|
||||
-Wno-unused-parameter \
|
||||
-Wno-gnu-array-member-paren-init \
|
||||
-Wno-packed \
|
||||
-Werror=format-security \
|
||||
-Werror=array-bounds \
|
||||
@@ -176,6 +175,8 @@ ARCHWARNINGS += -Wdouble-promotion \
|
||||
-Werror=unused-but-set-variable \
|
||||
-Werror=double-promotion
|
||||
ARCHOPTIMIZATION += -fno-strength-reduce
|
||||
else
|
||||
ARCHWARNINGS += -Wno-gnu-array-member-paren-init
|
||||
endif
|
||||
|
||||
# -Werror=float-conversion - works, just needs to be phased in with some effort and needs GCC 4.9+
|
||||
|
||||
Reference in New Issue
Block a user