From 8c3e994dc214422d8ff5a6a4a6dd845a96b7c3af Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 14 Feb 2025 06:32:03 +0100 Subject: [PATCH] Refreshing no-Werror.patch. Signed-off-by: Daniel Baumann --- debian/patches/debian/0007-no-Werror.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/patches/debian/0007-no-Werror.patch b/debian/patches/debian/0007-no-Werror.patch index 2321e26..f7466a5 100644 --- a/debian/patches/debian/0007-no-Werror.patch +++ b/debian/patches/debian/0007-no-Werror.patch @@ -11,8 +11,8 @@ diff -Naurp mdadm.orig/Makefile mdadm/Makefile CC := $(CROSS_COMPILE)gcc endif CXFLAGS ?= -ggdb --CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter -+CWFLAGS = -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter +-CWFLAGS ?= -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIE -Warray-bounds ++CWFLAGS ?= -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIE -Warray-bounds ifdef WARN_UNUSED - CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O3 + CWFLAGS += -Wp -O3 endif