1 Star 0 Fork 32

hantwofish/gazelle_1

forked from src-openEuler/gazelle 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0010-suport-clang-build.patch 801 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 655bcc55ae2045b1a457f7b654569361ea32bfc2 Mon Sep 17 00:00:00 2001
From: luofeng14 <luofeng13@huawei.com>
Date: Tue, 12 Sep 2023 02:05:34 +0000
Subject: [PATCH] suport clang build
Signed-off-by: luofeng14 <luofeng13@huawei.com>
---
src/lstack/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lstack/Makefile b/src/lstack/Makefile
index 8f684ba..30965f8 100644
--- a/src/lstack/Makefile
+++ b/src/lstack/Makefile
@@ -40,7 +40,7 @@ INC = -I$(LSTACK_DIR)/include \
-I$(LWIP_INCLUDE_FILE) \
-I$(DPDK_INCLUDE_FILE)
-CFLAGS = $(OPTIMIZATION) -fno-strict-aliasing $(INC)
+CFLAGS += $(OPTIMIZATION) -fno-strict-aliasing $(INC) -Wno-error=unused-function
ifeq ($(GAZELLE_COVERAGE_ENABLE), 1)
LDFLAGS += -fprofile-arcs -ftest-coverage
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hantwofish/gazelle_1.git
git@gitee.com:hantwofish/gazelle_1.git
hantwofish
gazelle_1
gazelle_1
master

搜索帮助