From d372099242aa5737cc68f0042c30aa7574a9a9c2 Mon Sep 17 00:00:00 2001 From: yinshengkai Date: Fri, 10 May 2024 18:16:48 +0800 Subject: [PATCH] system/adb: Ignore warnings for using variables Will cause compilation warning if NDEBUG is defined We can't modify the code of the external library, so let's ignore it microADB/hal/hal_uv_client_usb.c:90:13: warning: unused variable 'ret' [-Wunused-variable] 90 | int ret = uv_read_start((uv_stream_t*)&client->pipe, Signed-off-by: yinshengkai --- system/adb/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/system/adb/Makefile b/system/adb/Makefile index e299250fc..ca8f3ce12 100644 --- a/system/adb/Makefile +++ b/system/adb/Makefile @@ -52,6 +52,7 @@ CSRCS += $(ADB_UNPACKNAME)/hal/hal_uv.c CSRCS += $(ADB_UNPACKNAME)/hal/hal_uv_packet.c CFLAGS += -I$(ADB_UNPACKNAME) +CFLAGS += -Wno-unused-variable -Wno-unused-but-set-variable ifeq ($(CONFIG_ADBD_TCP_SERVER),y) CSRCS += $(ADB_UNPACKNAME)/hal/hal_uv_client_tcp.c