diff --git a/6013-remove-Werror-options.patch b/6013-remove-Werror-options.patch new file mode 100644 index 0000000000000000000000000000000000000000..2b7e7b30765d8992574251c34f91d0d2bca0205e --- /dev/null +++ b/6013-remove-Werror-options.patch @@ -0,0 +1,25 @@ +From 0810a75359009ec6b67dfac01765deee2516e7cb Mon Sep 17 00:00:00 2001 +From: wuguanghao +Date: Mon, 29 Jun 2020 17:20:21 +0800 +Subject: [PATCH] Werror seems like a bad idea, so remove -Werror options + +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 2767ac6..5e24cbd 100644 +--- a/Makefile ++++ b/Makefile +@@ -48,7 +48,7 @@ endif + + CC ?= $(CROSS_COMPILE)gcc + CXFLAGS ?= -ggdb +-CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter ++CWFLAGS = -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter + ifdef WARN_UNUSED + CWFLAGS += -Wp,-D_FORTIFY_SOURCE=2 -O3 + endif +-- +1.8.3.1 + diff --git a/mdadm.spec b/mdadm.spec index e77fe15dadd6ee6c1ea72b263fb4a7ec45f71a65..6e11a6c09b3dc8fc4242594d11f8120816538469 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -23,7 +23,7 @@ Patch6009: 6009-mdmon-wait-for-previous-mdmon-to-exit-during-takeove.patch Patch6010: 6010-Assemble-Fix-starting-array-with-initial-reshape-che.patch Patch6011: 6011-add-missing-units-to-examine.patch Patch6012: 6012-Create-Block-rounding-size-to-max.patch - +Patch6013: 6013-remove-Werror-options.patch BuildRequires: systemd gcc binutils Requires(post): systemd coreutils Requires(preun): systemd