From 30840ebc9925bb8ef025dbc2d5982b1bfeb75f1b Mon Sep 17 00:00:00 2001 From: stijn Date: Thu, 9 Apr 2020 13:59:11 +0200 Subject: all: Enable extra conversion warnings where applicable. Add -Wdouble-promotion and -Wfloat-conversion for most ports to ban out implicit floating point conversions, and add extra Travis builds using MICROPY_FLOAT_IMPL_FLOAT to uncover warnings which weren't found previously. For the unix port -Wsign-comparison is added as well but only there since only clang supports this but gcc doesn't. --- ports/javascript/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ports/javascript') diff --git a/ports/javascript/Makefile b/ports/javascript/Makefile index 384253e54..4f9dd444b 100644 --- a/ports/javascript/Makefile +++ b/ports/javascript/Makefile @@ -19,7 +19,7 @@ ifdef EMSCRIPTEN CPP += -isystem $(EMSCRIPTEN)/system/include/libc -cxx-isystem $(EMSCRIPTEN)/system/include/libcxx endif -CFLAGS = -m32 -Wall -Werror $(INC) -std=c99 $(COPT) +CFLAGS = -m32 -Wall -Werror -Wdouble-promotion -Wfloat-conversion $(INC) -std=c99 $(COPT) LDFLAGS = -m32 -Wl,-Map=$@.map,--cref -Wl,--gc-sections CFLAGS += -O0 -DNDEBUG -- cgit v1.2.3