27 lines
801 B
Diff
27 lines
801 B
Diff
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
|
|
|