upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / virtualbox / repos / community-x86_64 / 004-drop-Wno-format.patch
blob1b9ec8f0aa6dc9db4061b235e873b711623b86d1
1 From 6fed8ce04e50522c690ffa4bb100c1dd00ee4d36 Mon Sep 17 00:00:00 2001
2 From: Christian Hesse <mail@eworm.de>
3 Date: Tue, 18 Apr 2023 22:59:50 +0200
4 Subject: [PATCH 1/1] drop -Wno-format
6 ---
7 src/VBox/Devices/EFI/Firmware/Config.kmk | 2 +-
8 src/VBox/Devices/Makefile.kmk | 2 +-
9 src/VBox/Devices/PC/ipxe/Makefile.kmk | 2 +-
10 src/VBox/ExtPacks/VBoxDTrace/Makefile.kmk | 2 +-
11 src/VBox/Main/webservice/Makefile.kmk | 3 +--
12 5 files changed
14 diff --git a/src/VBox/Devices/EFI/Firmware/Config.kmk b/src/VBox/Devices/EFI/Firmware/Config.kmk
15 index ddd1fc1e..0614d90c 100644
16 --- a/src/VBox/Devices/EFI/Firmware/Config.kmk
17 +++ b/src/VBox/Devices/EFI/Firmware/Config.kmk
18 @@ -155,7 +155,7 @@ TEMPLATE_VBoxEfiBldProg_LIBS = \
19 ifn1of ($(KBUILD_HOST), win) # This stuff isn't up to our standard at all! :/
20 TEMPLATE_VBoxEfiBldProg_CFLAGS = $(filter-out -pedantic,$(TEMPLATE_VBoxBldProg_CFLAGS)) \
21 -Wno-sign-compare -Wno-missing-prototypes -Wno-strict-prototypes \
22 - -Wno-implicit-function-declaration -Wno-missing-declarations -Wno-shadow -Wno-format \
23 + -Wno-implicit-function-declaration -Wno-missing-declarations -Wno-shadow \
24 -Wno-empty-body -Wno-unused-parameter -Wno-unused-variable -Wno-unused-label
25 TEMPLATE_VBoxEfiBldProg_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_VBoxBldProg_CXXFLAGS)) \
26 -Wno-all -Wno-shadow -Wno-empty-body -Wno-unused-parameter -Wno-unused-variable \
27 diff --git a/src/VBox/Devices/Makefile.kmk b/src/VBox/Devices/Makefile.kmk
28 index a17e655f..fe905681 100644
29 --- a/src/VBox/Devices/Makefile.kmk
30 +++ b/src/VBox/Devices/Makefile.kmk
31 @@ -837,7 +837,7 @@ if !defined(VBOX_ONLY_EXTPACKS) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SU
32 ifeq ($(KBUILD_TARGET),win)
33 $(file)_CFLAGS = -wd4018
34 else
35 - $(file)_CFLAGS += -Wno-sign-compare -Wno-format -Wno-bad-function-cast
36 + $(file)_CFLAGS += -Wno-sign-compare -Wno-bad-function-cast
37 endif
38 endef
40 diff --git a/src/VBox/Devices/PC/ipxe/Makefile.kmk b/src/VBox/Devices/PC/ipxe/Makefile.kmk
41 index 7f5b4c5a..33705fe7 100644
42 --- a/src/VBox/Devices/PC/ipxe/Makefile.kmk
43 +++ b/src/VBox/Devices/PC/ipxe/Makefile.kmk
44 @@ -396,7 +396,7 @@ endif
46 BLDPROGS += ipxezbin
47 ipxezbin_TEMPLATE = VBoxBldProg
48 - ipxezbin_CFLAGS = -Wno-format -Wno-unused-function -Wno-pointer-arith
49 + ipxezbin_CFLAGS = -Wno-unused-function -Wno-pointer-arith
50 ipxezbin_SOURCES = src/util/zbin.c
51 ifdef VBOX_WITH_LIBLZMA
52 ipxezbin_INCS = $(SDK_VBoxLibLzma_INCS) # Can't use the proper SDK here as link order matters and liblzma depends on our runtime.
53 diff --git a/src/VBox/ExtPacks/VBoxDTrace/Makefile.kmk b/src/VBox/ExtPacks/VBoxDTrace/Makefile.kmk
54 index 081f02b0..75fe411b 100644
55 --- a/src/VBox/ExtPacks/VBoxDTrace/Makefile.kmk
56 +++ b/src/VBox/ExtPacks/VBoxDTrace/Makefile.kmk
57 @@ -118,7 +118,7 @@ if defined(VBOX_WITH_EXTPACK_VBOXDTRACE) && defined(VBOX_WITH_EXTPACK)
58 VBoxDTraceCmd_DEFS.win = YY_USE_PROTOS=1 YYENABLE_NLS=0 YYLTYPE_IS_TRIVIAL=0
59 VBoxDTraceCmd_SDKS = VBoxZlib
60 ifn1of ($(KBUILD_TARGET), win)
61 - VBoxDTraceCmd_CFLAGS = -Wno-format $(VBOX_GCC_Wno-overlength-strings) -Wno-sign-compare -Wno-strict-prototypes -Wno-missing-prototypes -Wno-missing-declarations -Wno-shadow
62 + VBoxDTraceCmd_CFLAGS = $(VBOX_GCC_Wno-overlength-strings) -Wno-sign-compare -Wno-strict-prototypes -Wno-missing-prototypes -Wno-missing-declarations -Wno-shadow
63 endif
64 VBoxDTraceCmd_INCS = \
65 include \
66 diff --git a/src/VBox/Main/webservice/Makefile.kmk b/src/VBox/Main/webservice/Makefile.kmk
67 index dbccdf4f..c6093ed4 100644
68 --- a/src/VBox/Main/webservice/Makefile.kmk
69 +++ b/src/VBox/Main/webservice/Makefile.kmk
70 @@ -264,7 +264,7 @@ ifdef VBOX_GSOAP_INSTALLED
71 ifn1of ($(KBUILD_TARGET), win)
72 vboxsoap_CXXFLAGS += -Wno-shadow -Wno-parentheses $(VBOX_GCC_Wno-literal-suffix) \
73 $(VBOX_GCC_Wno-stringop-overflow) $(VBOX_GCC_Wno-stringop-truncation) \
74 - $(VBOX_GCC_Wno-vla) -Wno-format -Wno-deprecated-declarations $(VBOX_GCC_fno-printf-return-value)
75 + $(VBOX_GCC_Wno-vla) -Wno-deprecated-declarations $(VBOX_GCC_fno-printf-return-value)
76 ifn1of ($(KBUILD_TYPE), debug) # Save time+memory by using -O0 instead of -O2.
77 vboxsoap_CXXFLAGS += -O0 ## @todo this could be interesting for g++ (not clang++): -fcprop-registers
78 endif
79 @@ -335,7 +335,6 @@ ifdef VBOX_GSOAP_INSTALLED
80 $(VBOXWEB_OUT_DIR)/gsoap_copy_all_ts
81 ifn1of ($(KBUILD_TARGET), win)
82 $(VBOX_GSOAP_CXX_SOURCES)_CXXFLAGS = \
83 - -Wno-format \
84 $(VBOX_GCC_Wno-int-in-bool-context) \
85 $(VBOX_GCC_Wno-logical-op)
86 # currently necessary when compiling against OpenSSL 1.0 due to a missing