]> xenbits.xensource.com Git - unikraft/libs/libcxx.git/commitdiff
Makefile.uk: Suppress noisy warnings
authorAndrei Tatar <andrei@unikraft.io>
Tue, 27 Jun 2023 16:17:58 +0000 (18:17 +0200)
committerUnikraft <monkey@unikraft.io>
Mon, 7 Aug 2023 16:47:38 +0000 (16:47 +0000)
This change adds several warning suppression flags, some
compiler-specific or language-specific.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #30

Makefile.uk

index 612adfc94c9dfdc23abbfec1d33d6b98e515bbd5..7288e6e1a3d29aa004babab93997dbb58de7e34c 100644 (file)
@@ -86,14 +86,17 @@ 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-y += -Wno-keyword-compat
 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_SUPPRESS_FLAGS-$(call have_gcc) += -Wno-unknown-pragmas
 
 LIBCXX_CFLAGS-y    += $(LIBCXX_CONFIG_FLAGS)
 LIBCXX_CXXFLAGS-y  += $(LIBCXX_CONFIG_FLAGS) -std=c++2a
+LIBCXX_CXXFLAGS-$(call have_gcc) += -Wno-literal-suffix
+LIBCXX_CXXFLAGS-$(call have_gcc) += -Wno-dangling-reference
 
 LIBCXX_CFLAGS-y   += $(LIBCXX_SUPPRESS_FLAGS-y)
 LIBCXX_CXXFLAGS-y += $(LIBCXX_SUPPRESS_FLAGS-y)