diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2023-05-11 10:07:05 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2023-05-11 10:07:05 +0000 |
commit | 57c61ff39590d96683e5f6732466e2b31e49d14d (patch) | |
tree | 94b37832368150f35a79fe5fcde6491e28c9ac7c | |
parent | ca4d05988f1eb2e2e7d56789092d05ec9eec4481 (diff) | |
download | VirtualBox-svn-57c61ff39590d96683e5f6732466e2b31e49d14d.tar.gz |
Main: More Clang 13 build fixes (warnings as errors) [better fix, use global compiler warning control / DynamicConfig.kmk in Config.kmk].
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@99744 cfe28804-0f27-0410-a406-dd0f0b0b656f
-rw-r--r-- | Config.kmk | 3 | ||||
-rw-r--r-- | src/VBox/Main/Makefile.kmk | 1 | ||||
-rw-r--r-- | src/VBox/Main/testcase/Makefile.kmk | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/Config.kmk b/Config.kmk index e3a2dd6174a..a68168770f1 100644 --- a/Config.kmk +++ b/Config.kmk @@ -3406,6 +3406,8 @@ ifndef VBOX_NOINC_DYNAMIC_CONFIG_KMK $(QUIET)$(APPEND) '$@' 'VBOX_GCC_Wno-undefined-var-template ?= $(call VBOX_GCC_CHECK_CXX,-Wno-undefined-var-template,)' $(QUIET)$(APPEND) '$@' 'VBOX_GCC_Wno-c11-extensions ?= $(call VBOX_GCC_CHECK_CXX,-Wno-c11-extensions,)' $(QUIET)$(APPEND) '$@' 'VBOX_GCC_Wno-tautological-pointer-compare ?= $(call VBOX_GCC_CHECK_CC,-Wno-tautological-pointer-compare,)' + # Clang 13. + $(QUIET)$(APPEND) '$@' 'VBOX_GCC_Wno-deprecated-copy ?= $(call VBOX_GCC_CHECK_CC,-Wno-deprecated-copy,)' ifeq ($(KBUILD_TARGET),solaris) $(QUIET)$(APPEND) '$@' 'VBOX_GCC_msave-args ?= $(call VBOX_GCC_CHECK_CXX,-msave-args,)' # Detect the solaris assembler. It is used by the the 4.x gcc compilers, @@ -3554,6 +3556,7 @@ endif VBOX_GCC_WARN ?= -Wall $(VBOX_GCC_Wextra) $(VBOX_GCC_Wno-missing-field-initializers) -Wno-unused -Wno-trigraphs \ $(VBOX_GCC_fdiagnostics-show-option) $(VBOX_GCC_Wno-unused-parameter) $(VBOX_GCC_Wno-language-extension-token) \ $(VBOX_GCC_Wno-extended-offsetof) $(VBOX_GCC_Wno-gnu-folding-constant) $(VBOX_GCC_Wno-gnu-anonymous-struct) \ + $(VBOX_GCC_Wno-deprecated-copy) \ $(VBOX_GCC_Wlogical-op) $(VBOX_GCC_Wno-string-plus-int) $(VBOX_GCC_Wno-nested-anon-types) $(VBOX_GCC_Wno-variadic-macros) \ $(VBOX_GCC_Wno-c++17-compat-mangling) VBOX_GCC_WARN_PEDANTIC = -Wshadow $(VBOX_GCC_WARN) -Wno-long-long diff --git a/src/VBox/Main/Makefile.kmk b/src/VBox/Main/Makefile.kmk index 4a74e54af8a..d52ef4f7fc8 100644 --- a/src/VBox/Main/Makefile.kmk +++ b/src/VBox/Main/Makefile.kmk @@ -980,7 +980,6 @@ if !defined(VBOX_ONLY_SDK) && !defined(VBOX_ONLY_EXTPACKS) # Note this goes on f $$(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def: $(RM) -f $@ $(APPEND) $@ _NSGetModule - VBoxSVCM_CXXFLAGS += -Wno-deprecated-copy # To shut up Clang 13 (-Wdeprecated-copy). endif VBoxSVCM_INTERMEDIATES += $(VBOX_IDL_HEADER.XPCOM) diff --git a/src/VBox/Main/testcase/Makefile.kmk b/src/VBox/Main/testcase/Makefile.kmk index c4f0b4c460a..51f082c0aa5 100644 --- a/src/VBox/Main/testcase/Makefile.kmk +++ b/src/VBox/Main/testcase/Makefile.kmk @@ -144,7 +144,6 @@ tstVBoxAPIXPCOM_LIBS = \ $(LIB_XPCOM) \ $(LIB_RUNTIME) tstVBoxAPIXPCOM_CXXFLAGS = -fshort-wchar -tstVBoxAPIXPCOM_CXXFLAGS.darwin += -Wno-deprecated-copy # To shut up Clang 13 (-Wdeprecated-copy). ifdef VBOX_WITH_RUNPATH tstVBoxAPIXPCOM_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' $(TEMPLATE_VBoxBldProg_LDFLAGS) else ifdef VBOX_WITH_RELATIVE_RUNPATH |