commit | 4e5ed8df1b63ddba08eb0b2356a66b1badddcd5d | [log] [tgz] |
---|---|---|
author | Tamas Ban <tamas.ban@arm.com> | Tue Sep 17 09:31:11 2019 +0100 |
committer | Tamas Ban <tamas.ban@arm.com> | Fri Sep 27 11:59:41 2019 +0000 |
tree | 0b941de543b4b3c851e67efe82d8576b55c2a096 | |
parent | 94b1b413189d047e202808582173ce47dbafc995 [diff] [blame] |
Boot: Fix GNUARM compile error Initialise local variable to avoid GNUARM compile error in case of MINSIZEREL build. Change-Id: I0d06b79c6ee86f36e2668ac7a8b7ffff34ee2e2e Signed-off-by: Tamas Ban <tamas.ban@arm.com>
diff --git a/bl2/ext/mcuboot/bootutil/src/loader.c b/bl2/ext/mcuboot/bootutil/src/loader.c index be0582e..406257e 100644 --- a/bl2/ext/mcuboot/bootutil/src/loader.c +++ b/bl2/ext/mcuboot/bootutil/src/loader.c
@@ -1959,7 +1959,7 @@ { size_t slot; struct boot_status bs; - int rc; + int rc = 0; int fa_id; /* The array of slot sectors are defined here (as opposed to file scope) so