apache / mynewt-nimble

Apache mynewt
https://mynewt.apache.org/
Apache License 2.0
664 stars 384 forks source link

porting/npl/nuttx/include/nimble/nimble_npl_os_log.h: fix gcc14 error #1795

Closed raiden00pl closed 2 weeks ago

raiden00pl commented 3 weeks ago

porting/npl/nuttx/include/nimble/nimble_npl_os_log.h: fix gcc14 error

error: implicit declaration of function 'vprintf' [-Wimplicit-function-declaration] 32 | vprintf(fmt, args);

GCC14 has a more restrictive warning policy and treats some warnings as errors, which breaks compilation for NuttX

EDIT: it looks like the problem also occurs for older GCC versions, as reported by NuttX CI: https://github.com/apache/nuttx-apps/actions/runs/9483234519/job/26130011374#step:7:368