apache / nuttx-apps

Apache NuttX Apps is a collection of tools, shells, network utilities, libraries, interpreters and can be used with the NuttX RTOS
https://nuttx.apache.org/
Apache License 2.0
264 stars 490 forks source link

system/adb: Ignore warnings for using variables #2381

Closed Gary-Hobson closed 2 months ago

Gary-Hobson commented 2 months ago

Summary

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,

Impact

Testing

xiaoxiang781216 commented 2 months ago

Let's provide a patch to fix the upstream project too, @Gary-Hobson.