Yulong Pei | f9a1748 | 2023-01-05 02:26:32 +0000 | [diff] [blame] | 1 | From 3033b9bdbcdb270f15373b27933d554f847e01d4 Mon Sep 17 00:00:00 2001 |
| 2 | From: Yulong <yulong.pei@intel.com> |
| 3 | Date: Fri, 6 Jan 2023 14:31:24 +0000 |
| 4 | Subject: [PATCH 3/3] libxdp: fix maybe-uninitialized compiler warning |
| 5 | |
| 6 | Signed-off-by: Yulong <yulong.pei@intel.com> |
| 7 | --- |
| 8 | lib/common.mk | 2 +- |
| 9 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 10 | |
| 11 | diff --git a/lib/common.mk b/lib/common.mk |
| 12 | index 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 | -- |
| 25 | 2.25.1 |
| 26 | |