加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-mdadm-remove-Werror-to-fix-Werror-address-of-packed-.patch 939 Bytes
一键复制 编辑 原始数据 按行查看 历史
wguanghao 提交于 2022-10-17 23:13 . upgrade version to 4.2
From 08a99f11c2b507b5e6e5403461e2f53715be8ade 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 2a51d81..ee5bdad 100644
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,7 @@ ifeq ($(origin CC),default)
CC := $(CROSS_COMPILE)gcc
endif
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.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化