From d00714d43ad7c0c5feedd458b8ce242f3f78237a Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Mon, 4 May 2020 10:38:21 +0200 Subject: [PATCH] unknown to clang < 8: -Woverride-init --- Makefile.defs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile.defs b/Makefile.defs index 3c111f400..0cfdf85a7 100644 --- a/Makefile.defs +++ b/Makefile.defs @@ -47,16 +47,15 @@ endif DEFCFLAGS = -Wall -Werror -O3 # Some more warnings we want as errors: -DEFCFLAGS += -Wcast-align -Wbad-function-cast -Wredundant-decls -Wmissing-prototypes -Wchar-subscripts -Wshadow -Wundef -Wwrite-strings -Wunused -Wuninitialized -Wpointer-arith -Winline -Wformat -Wformat-security -Winit-self -Wmissing-include-dirs -Wnested-externs -Wmissing-declarations -Wempty-body -Wignored-qualifiers -Woverride-init +DEFCFLAGS += -Wcast-align -Wbad-function-cast -Wredundant-decls -Wmissing-prototypes -Wchar-subscripts -Wshadow -Wundef -Wwrite-strings -Wunused -Wuninitialized -Wpointer-arith -Winline -Wformat -Wformat-security -Winit-self -Wmissing-include-dirs -Wnested-externs -Wmissing-declarations -Wempty-body -Wignored-qualifiers # Some more warnings we need first to eliminate, so temporarely tolerated: DEFCFLAGS += -Wno-error=cast-align # TODO?: #DEFCFLAGS += -Wunused-parameter -Wold-style-declaration -Wsign-compare -Wimplicit-fallthrough=3 -Wtype-limits -Wmissing-field-initializers -Wunused-but-set-parameter -Wswitch-enum -Wold-style-definition #DEFCFLAGS += -Wno-error=unused-parameter -Wno-error=old-style-declaration -Wno-error=sign-compare -Wno-error=implicit-fallthrough -Wno-error=type-limits -Wno-error=missing-field-initializers -Wno-error=unused-but-set-parameter -Wno-error=switch-enum -Wno-error=old-style-definition -# unknown to clang: -# -Wclobbered -Wmissing-parameter-type -Wcast-function-type -# requires GCC 6: -# -Wshift-negative-value +# unknown to clang: -Wclobbered -Wmissing-parameter-type -Wcast-function-type +# unknown to clang < 8: -Woverride-init +# unknown to gcc < 6: -Wshift-negative-value ifeq ($(platform),Darwin) # their readline has strict-prototype issues