From 15ccb34535b0aa9603124506cf4c4d1ff4dc433b Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 20 May 2020 13:28:37 +0200 Subject: [PATCH] Add -Wconversion in EXTRACFLAGS --- Makefile.defs | 1 + client/deps/tinycbor/Makefile | 2 +- common_arm/Makefile.common | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.defs b/Makefile.defs index be504caa9..8ad2e319f 100644 --- a/Makefile.defs +++ b/Makefile.defs @@ -63,6 +63,7 @@ endif EXTRACFLAGS = EXTRACFLAGS += -Wunused-parameter -Wno-error=unused-parameter EXTRACFLAGS += -Wsign-compare -Wno-error=sign-compare +EXTRACFLAGS += -Wconversion -Wno-error=conversion -Wno-error=sign-conversion -Wno-error=float-conversion # unknown to clang or old gcc: # First we activate Wextra then we explicitly list those we know about diff --git a/client/deps/tinycbor/Makefile b/client/deps/tinycbor/Makefile index 4de65aa7f..b50c1584f 100644 --- a/client/deps/tinycbor/Makefile +++ b/client/deps/tinycbor/Makefile @@ -1,7 +1,7 @@ MYSRCPATHS = MYINCLUDES = # Strange errors on Mingw when compiling with C99 -MYCFLAGS = -Wno-bad-function-cast -Wno-redundant-decls -Wno-incompatible-pointer-types-discards-qualifiers -Wno-discarded-qualifiers -Wno-unknown-warning-option -Wno-maybe-uninitialized +MYCFLAGS = -Wno-bad-function-cast -Wno-redundant-decls -Wno-incompatible-pointer-types-discards-qualifiers -Wno-discarded-qualifiers -Wno-unknown-warning-option -Wno-maybe-uninitialized -Wno-conversion MYDEFS = MYSRCS = \ cborencoder.c \ diff --git a/common_arm/Makefile.common b/common_arm/Makefile.common index 81f2b0131..8b5836e73 100644 --- a/common_arm/Makefile.common +++ b/common_arm/Makefile.common @@ -61,6 +61,7 @@ EXTRACFLAGS += -Wunused-parameter -Wno-error=unused-parameter EXTRACFLAGS += -Wswitch-enum -Wno-error=switch-enum EXTRACFLAGS += -Wsign-compare -Wno-error=sign-compare EXTRACFLAGS += -Wold-style-definition -Wno-error=old-style-definition +EXTRACFLAGS += -Wconversion -Wno-error=conversion -Wno-error=sign-conversion -Wno-error=float-conversion # unknown to clang or old gcc: # First we activate Wextra then we explicitly list those we know about