You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2015/11/24 21:39:52 UTC

[06/11] incubator-mynewt-larva git commit: Fix compiler warning for unused var when building with baselibc.

Fix compiler warning for unused var when building with baselibc.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/b4217eae
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/b4217eae
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/b4217eae

Branch: refs/heads/master
Commit: b4217eae4f5051f997a1374a9181c3fd3890444a
Parents: 335e91b
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Tue Nov 24 11:39:51 2015 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Tue Nov 24 11:39:51 2015 -0800

----------------------------------------------------------------------
 libs/bootutil/src/loader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/b4217eae/libs/bootutil/src/loader.c
----------------------------------------------------------------------
diff --git a/libs/bootutil/src/loader.c b/libs/bootutil/src/loader.c
index bae9a4c..05bd474 100644
--- a/libs/bootutil/src/loader.c
+++ b/libs/bootutil/src/loader.c
@@ -519,7 +519,7 @@ boot_build_status_one(int image_num, uint8_t flash_id, uint32_t addr,
                       uint32_t length)
 {
     uint32_t offset;
-    int area_idx;
+    int area_idx = 0;
     int part_num;
     int i;