Skip to content

Commit 724bf1c

Browse files
[nrf toup] bootutil: silence spurious GCC warning
GCC things rc might be returned without being written. It's wrong, but silence the warning, which is causing issues with -Werror. Signed-off-by: Marti Bolivar <[email protected]>
1 parent eade7d7 commit 724bf1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/bootutil/src/loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2102,7 +2102,7 @@ boot_go(struct boot_rsp *rsp)
21022102
{
21032103
size_t slot;
21042104
struct boot_status bs;
2105-
int rc;
2105+
int rc = 0;
21062106
int fa_id;
21072107

21082108
/* The array of slot sectors are defined here (as opposed to file scope) so

0 commit comments

Comments
 (0)