Warning building nRF SDK 2.1.0

Here is a warning during build

C:/v2.1.0/nrf/subsys/bluetooth/mesh/shell/shell_utils.c: In function 'shell_model_strtosensorval':
C:\v2.1.0\nrf\subsys\bluetooth\mesh\shell\shell_utils.c:49:10: warning: 'out' may be used uninitialized in this function [-Wmaybe-uninitialized]
49 | return out;
| ^~~

How do I file a bug report?
Thanks

  • Hi AndyM,

    This counts as a report. I will let the relevant team know about this. Thank you Smiley

    Best regards,

    Hieu

  • Another warning

    7/15] Linking C executable zephyr\zephyr_pre0.elf

    c:/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: warning: C:/v2.1.1/nrfxlib/nrf_dm/lib/nRF52840/hard-float/libnrf_dm.a(libnrf_dm.obj) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail

    [8/15] Generating dev_handles.c
    [9/15] Building C object zephyr/CMakeFiles/zephyr_pre1.dir/dev_handles.c.obj
    [10/15] Linking C executable zephyr\zephyr_pre1.elf
    c:/toolchains/v2.1.1/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.exe: warning: C:/v2.1.1/nrfxlib/nrf_dm/lib/nRF52840/hard-float/libnrf_dm.a(libnrf_dm.obj) uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail

  • Thanks, AndyM. Also forwarded to the NCS team.

Related