You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/05/10 17:19:47 UTC
(nuttx-apps) branch master updated: system/adb: Ignore warnings for using variables
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new d37209924 system/adb: Ignore warnings for using variables
d37209924 is described below
commit d372099242aa5737cc68f0042c30aa7574a9a9c2
Author: yinshengkai <yi...@xiaomi.com>
AuthorDate: Fri May 10 18:16:48 2024 +0800
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 <yi...@xiaomi.com>
---
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