mdadm: remove -Werror to fix [-Werror=address-of-packed-member] problem

gcc reports [-Werror=address-of-packed-member] error when building
mdadm package. Here, we remove -Werror to fix
[-Werror=address-of-packed-member] problem.

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
This commit is contained in:
Zhiqiang Liu 2020-06-29 21:39:25 +08:00
parent 2147843f14
commit 5d89d329bd
2 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,31 @@
From f64c9a6a28487c39704b09067e147563218f64be Mon Sep 17 00:00:00 2001
From: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Date: Mon, 29 Jun 2020 21:33:22 +0800
Subject: [PATCH] mdadm: remove -Werror to fix
[-Werror=address-of-packed-member] problem
gcc reports [-Werror=address-of-packed-member] error when building
mdadm package. Here, we remove -Werror to fix
[-Werror=address-of-packed-member] problem.
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
---
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
--
2.24.0.windows.2

View File

@ -1,6 +1,6 @@
Name: mdadm
Version: 4.1
Release: rc2.0.9
Release: rc2.0.10
Summary: The software RAID arrays user manage tools
License: GPLv2+
URL: http://www.kernel.org/pub/linux/utils/raid/mdadm/
@ -23,6 +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-mdadm-remove-Werror-to-fix-Werror-address-of-packed-.patch
BuildRequires: systemd gcc binutils
Requires(post): systemd coreutils
@ -85,6 +86,12 @@ install -d -m 710 %{buildroot}/var/run/mdadm/
%{_mandir}/man*/*
%changelog
* Mon Jun 29 2020 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 4.1-rc2.0.10
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: remove -Werror to fix [-Werror=address-of-packed-member] problem
* Mon Mar 9 2020 hy <eulerstoragemt@huawei.com> - 4.1-rc2.0.9
- Type:bugfix
- ID:NA