From f0ddb92be0d61ba840adba2344e9b801eb46bce9 Mon Sep 17 00:00:00 2001 From: chao an Date: Mon, 20 Feb 2023 18:09:14 +0800 Subject: [PATCH] libuv: disable warning message of dangling-pointer | In file included from libuv/src/uv-common.h:42, | from libuv/src/uv-common.c:23: | libuv/src/uv-common.c: In function 'uv_walk': | libuv/src/queue.h:68:19: warning: storing the address of local variable 'queue' in '((void * (**)[2])MEM[(void *[2] * *)loop_13(D) + 8B])[1]' [-Wdangling-pointer=] | 68 | QUEUE_PREV(q) = (n); \ | | ^ | libuv/src/queue.h:78:7: note: in expansion of macro 'QUEUE_SPLIT' | 78 | QUEUE_SPLIT(h, q, n); \ | | ^~~~~~~~~~~ Signed-off-by: chao an --- system/libuv/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/system/libuv/Makefile b/system/libuv/Makefile index e20fb6c24..6221782c2 100644 --- a/system/libuv/Makefile +++ b/system/libuv/Makefile @@ -49,6 +49,7 @@ CFLAGS += -I$(LIBUV_UNPACK)/src CFLAGS += -I$(LIBUV_UNPACK)/src/unix CFLAGS += -I$(LIBUV_UNPACK)/test CFLAGS += -Wno-shadow +CFLAGS += -Wno-dangling-pointer CFLAGS += -DDEF_THREADPOOL_SIZE=CONFIG_LIBUV_THREADPOOL_SIZE CFLAGS += -DDEF_THREADPOOL_STACKSIZE=CONFIG_LIBUV_THREAD_STACKSIZE