blob: 6ab74171dc69ade76257dea54fd09784f3336f69 [file] [log] [blame]
Yulong Peif9a17482023-01-05 02:26:32 +00001From 3033b9bdbcdb270f15373b27933d554f847e01d4 Mon Sep 17 00:00:00 2001
2From: Yulong <yulong.pei@intel.com>
3Date: Fri, 6 Jan 2023 14:31:24 +0000
4Subject: [PATCH 3/3] libxdp: fix maybe-uninitialized compiler warning
5
6Signed-off-by: Yulong <yulong.pei@intel.com>
7---
8 lib/common.mk | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/lib/common.mk b/lib/common.mk
12index 56c0406..f7a88a1 100644
13--- a/lib/common.mk
14+++ b/lib/common.mk
15@@ -101,7 +101,7 @@ $(LIB_OBJS): %.o: %.c %.h $(LIB_H)
16
17 ALL_EXEC_TARGETS=$(USER_TARGETS) $(TEST_TARGETS)
18 $(ALL_EXEC_TARGETS): %: %.c $(OBJECT_LIBBPF) $(OBJECT_LIBXDP) $(LIBMK) $(LIB_OBJS) $(KERN_USER_H) $(EXTRA_DEPS) $(EXTRA_USER_DEPS)
19- $(QUIET_CC)$(CC) -Wall $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(LIB_OBJS) \
20+ $(QUIET_CC)$(CC) -Wall -Wno-maybe-uninitialized $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $(LIB_OBJS) \
21 $< $(LDLIBS)
22
23 $(XDP_OBJ): %.o: %.c $(KERN_USER_H) $(EXTRA_DEPS) $(BPF_HEADERS) $(LIBMK)
24--
252.25.1
26