From: Marco Schlumpp Date: Fri, 12 May 2023 09:32:49 +0000 (+0200) Subject: Add compiler dependency to some warnings X-Git-Tag: RELEASE-0.14.0~2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=173ce0a83a66b3b41aeb38b790a17c7420f135e1;p=unikraft%2Flibs%2Flibcxx.git Add compiler dependency to some warnings 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: #28 --- diff --git a/Makefile.uk b/Makefile.uk index fa4c38a..612adfc 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -75,27 +75,28 @@ LIBCXX_CONFIG_FLAGS += -D__STDC_CONSTANT_MACROS LIBCXX_CONFIG_FLAGS += -D__STDC_FORMAT_MACROS LIBCXX_CONFIG_FLAGS += -D__STDC_LIMIT_MACROS -LIBCXX_SUPPRESS_FLAGS += -Wno-attributes -LIBCXX_SUPPRESS_FLAGS += -Wno-comment -LIBCXX_SUPPRESS_FLAGS += -Wno-error -LIBCXX_SUPPRESS_FLAGS += -Wno-literal-suffix -LIBCXX_SUPPRESS_FLAGS += -Wno-long-long -LIBCXX_SUPPRESS_FLAGS += -Wno-misleading-indentation -LIBCXX_SUPPRESS_FLAGS += -Wno-missing-field-initializers -LIBCXX_SUPPRESS_FLAGS += -Wno-unused-parameter -LIBCXX_SUPPRESS_FLAGS += -Wno-parentheses -LIBCXX_SUPPRESS_FLAGS += -Wno-deprecated-declarations -LIBCXX_SUPPRESS_FLAGS += -Wno-alloc-size-larger-than -LIBCXX_SUPPRESS_FLAGS += -Wno-maybe-uninitialized -LIBCXX_SUPPRESS_FLAGS += -Wno-array-bounds -LIBCXX_SUPPRESS_FLAGS += -Wno-cpp -LIBCXX_SUPPRESS_FLAGS += -Wno-stringop-overflow +LIBCXX_SUPPRESS_FLAGS-y += -Wno-attributes +LIBCXX_SUPPRESS_FLAGS-y += -Wno-comment +LIBCXX_SUPPRESS_FLAGS-y += -Wno-error +LIBCXX_SUPPRESS_FLAGS-y += -Wno-long-long +LIBCXX_SUPPRESS_FLAGS-y += -Wno-misleading-indentation +LIBCXX_SUPPRESS_FLAGS-y += -Wno-missing-field-initializers +LIBCXX_SUPPRESS_FLAGS-y += -Wno-unused-parameter +LIBCXX_SUPPRESS_FLAGS-y += -Wno-parentheses +LIBCXX_SUPPRESS_FLAGS-y += -Wno-deprecated-declarations +LIBCXX_SUPPRESS_FLAGS-y += -Wno-array-bounds +LIBCXX_SUPPRESS_FLAGS-y += -Wno-cpp +LIBCXX_SUPPRESS_FLAGS-$(call have_clang) += -Wno-user-defined-literals +LIBCXX_SUPPRESS_FLAGS-$(call have_gcc) += -Wno-literal-suffix +LIBCXX_SUPPRESS_FLAGS-$(call have_gcc) += -Wno-stringop-overflow +LIBCXX_SUPPRESS_FLAGS-$(call have_gcc) += -Wno-alloc-size-larger-than +LIBCXX_SUPPRESS_FLAGS-$(call have_gcc) += -Wno-maybe-uninitialized LIBCXX_CFLAGS-y += $(LIBCXX_CONFIG_FLAGS) LIBCXX_CXXFLAGS-y += $(LIBCXX_CONFIG_FLAGS) -std=c++2a -LIBCXX_CFLAGS-y += $(LIBCXX_SUPPRESS_FLAGS) -LIBCXX_CXXFLAGS-y += $(LIBCXX_SUPPRESS_FLAGS) +LIBCXX_CFLAGS-y += $(LIBCXX_SUPPRESS_FLAGS-y) +LIBCXX_CXXFLAGS-y += $(LIBCXX_SUPPRESS_FLAGS-y) LIBCXX_SRCS-y += $(LIBCXX_BASE)/glue.c ################################################################################