This is an automated email from Gerrit.

?yvind Harboe (oyvindhar...@gmail.com) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/126

-- gerrit

commit a6334c6b1313f2bb925f48da73ff6f3c66d5bc5f
Author: Øyvind Harboe <oyvind.har...@zylin.com>
Date:   Wed Oct 26 22:26:44 2011 +0200

    clang: fix warning about use of unitialized variable
    
    this was a false positive, silence it.
    
    Change-Id: I432e0c466c94cf8fd6bbf0ea153c8501a8a261eb
    Signed-off-by: Øyvind Harboe <oyvind.har...@zylin.com>

diff --git a/src/target/arm_simulator.c b/src/target/arm_simulator.c
index 0a34cfc..1723b43 100644
--- a/src/target/arm_simulator.c
+++ b/src/target/arm_simulator.c
@@ -519,7 +519,7 @@ static int arm_simulate_step_core(struct target *target,
        /* load register instructions */
        else if ((instruction.type >= ARM_LDR) && (instruction.type <= 
ARM_LDRSH))
        {
-               uint32_t load_address = 0, modified_address = 0, load_value;
+               uint32_t load_address = 0, modified_address = 0, load_value = 0;
                uint32_t Rn = sim->get_reg_mode(sim, 
instruction.info.load_store.Rn);
 
                /* adjust Rn in case the PC is being read */

-- 
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to