From ccf186351de1ad27f52fd1d728e542f7cd9fe7f6 Mon Sep 17 00:00:00 2001 From: Marco Schlumpp Date: Fri, 12 May 2023 11:30:53 +0200 Subject: [PATCH] Add compiler dependency to some warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Clang and GCC support a different set of warnings. Signed-off-by: Marco Schlumpp Reviewed-by: Stefan Jumarea Reviewed-by: Maria Sfiraiala Reviewed-by: Razvan Deaconescu Approved-by: Eduard Vintilă Tested-by: Unikraft CI GitHub-Closes: #12 --- Makefile.uk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.uk b/Makefile.uk index 4a32fd1..285b6d3 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -70,11 +70,11 @@ CXXINCLUDES-$(CONFIG_LIBCOMPILER_RT) += -I$(LIBCOMPILER_RT_SRC)/lib/builtins ################################################################################ # Global flags ################################################################################ -LIBCOMPILER_RT_SUPPRESS_FLAGS += -Wno-unused-parameter -LIBCOMPILER_RT_SUPPRESS_FLAGS += -Wno-builtin-declaration-mismatch +LIBCOMPILER_RT_SUPPRESS_FLAGS-y += -Wno-unused-parameter +LIBCOMPILER_RT_SUPPRESS_FLAGS-$(have_gcc) += -Wno-builtin-declaration-mismatch -LIBCOMPILER_RT_CFLAGS-y += $(LIBCOMPILER_RT_SUPPRESS_FLAGS) -LIBCOMPILER_RT_CXXFLAGS-y += $(LIBCOMPILER_RT_SUPPRESS_FLAGS) +LIBCOMPILER_RT_CFLAGS-y += $(LIBCOMPILER_RT_SUPPRESS_FLAGS-y) +LIBCOMPILER_RT_CXXFLAGS-y += $(LIBCOMPILER_RT_SUPPRESS_FLAGS-y) ################################################################################ # Library sources -- 2.39.5