From eb7042c751dace1d8cfde2e1d4a7b34c4c448b26 Mon Sep 17 00:00:00 2001 From: Andrei Tatar Date: Tue, 29 Aug 2023 01:42:29 +0200 Subject: [PATCH] Makefile.uk: Suppress more warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add more warning supression & compiler specific warnings. Signed-off-by: Andrei Tatar Reviewed-by: Stefan Jumarea Reviewed-by: Eduard Vintilă Approved-by: Razvan Deaconescu GitHub-Closes: #36 --- Makefile.uk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.uk b/Makefile.uk index 95598f7..18d1904 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -112,13 +112,15 @@ LIBNEWLIB_SUPPRESS_FLAGS-y += \ -Wno-unused-parameter -Wno-unused-variable -Wno-nonnull \ -Wno-unused-but-set-variable -Wno-unused-label \ -Wno-unused-function -Wno-missing-field-initializers -Wno-uninitialized \ --Wno-array-bounds -Wno-maybe-uninitialized -Wno-pointer-sign -Wno-unused-value \ +-Wno-array-bounds -Wno-pointer-sign -Wno-unused-value \ -Wno-unused-macros -Wno-parentheses -Wno-implicit-function-declaration \ -Wno-missing-braces -Wno-endif-labels -Wno-unused-but-set-variable \ -Wno-type-limits -Wno-sign-compare +LIBNEWLIB_SUPPRESS_FLAGS-$(call have_gcc) += -Wno-maybe-uninitialized LIBNEWLIB_SUPPRESS_FLAGS-$(call gcc_version_ge,6,0) += -Wno-misleading-indentation LIBNEWLIB_SUPPRESS_FLAGS-$(call gcc_version_ge,6,0) += -Wno-shift-negative-value LIBNEWLIB_SUPPRESS_FLAGS-$(call gcc_version_ge,7,0) += -Wno-implicit-fallthrough +LIBNEWLIB_SUPPRESS_FLAGS-$(call have_clang) += -Wno-deprecated-non-prototype LIBNEWLIB_FLAGS += -ffreestanding LIBNEWLIB_NO_BUILTINS += -D__NO_SYSCALLS__ -fno-builtin @@ -133,6 +135,7 @@ LIBNEWLIBGLUE_CFLAGS-y += $(LIBNEWLIBGLUE_SUPPRESS_FLAGS-y) $(LIBNEWLIB_FLAGS) LIBNEWLIBGLUE_CXXFLAGS-y += $(LIBNEWLIBGLUE_SUPPRESS_FLAGS-y) $(LIBNEWLIB_FLAGS) LIBNEWLIB_GLOBAL_SUPPRESS_FLAGS-y += -Wno-char-subscripts +LIBNEWLIB_GLOBAL_SUPPRESS_FLAGS-$(call have_clang) += -Wno-typedef-redefinition CFLAGS-$(CONFIG_LIBNEWLIBC) += $(LIBNEWLIB_GLOBAL_SUPPRESS_FLAGS-y) CXXFLAGS-$(CONFIG_LIBNEWLIBC) += $(LIBNEWLIB_GLOBAL_SUPPRESS_FLAGS-y) -- 2.39.5