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 <yinshengkai@xiaomi.com>
This commit is contained in:
parent
94ccbf0577
commit
d372099242
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user