From d7d38449a09a2fc2de242ddc3c22eb334518e736 Mon Sep 17 00:00:00 2001 From: wuguanghao Date: Mon, 29 Jun 2020 18:56:23 +0800 Subject: [PATCH] resolve the problem of compilation --- 6013-remove-Werror-options.patch | 25 +++++++++++++++++++++++++ mdadm.spec | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 6013-remove-Werror-options.patch diff --git a/6013-remove-Werror-options.patch b/6013-remove-Werror-options.patch new file mode 100644 index 0000000..2b7e7b3 --- /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 e77fe15..6e11a6c 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 -- Gitee