boot_serial: Fix compilation due to danling pointer
repos/mcuboot/boot/boot_serial/src/zcbor_decode.c:341:52: error:
dangling pointer ‘result’ to ‘dummy’ may be used
[-Werror=dangling-pointer=]
341 | state->payload_end = result->value + result->len;
| ~~~~~~^~~~~
repos/mcuboot/boot/boot_serial/src/zcbor_decode.c:325:37: note: ‘dummy’
declared here
325 | struct zcbor_string dummy = {};
| ^~~~~
repos/mcuboot/boot/boot_serial/src/zcbor_decode.c:341:36: error:
dangling pointer ‘result’ to ‘dummy’ may be used
[-Werror=dangling-pointer=]
341 | state->payload_end = result->value + result->len;
| ~~~~~~^~~~~~~
repos/mcuboot/boot/boot_serial/src/zcbor_decode.c:325:37: note: ‘dummy’
declared here
325 | struct zcbor_string dummy = {};
| ^~~~~
cc1: all warnings being treated as errors
Signed-off-by:
Szymon Janc <szymon.janc@codecoup.pl>
Loading
Please sign in to comment