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:
Mark Charlebois
2015-05-06 11:45:23 -07:00
parent 5299f76706
commit 872e1ebda0
5 changed files with 18 additions and 13 deletions
+2 -1
View File
@@ -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+