This is an automated email from Gerrit.

?yvind Harboe ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/183

-- gerrit

commit 1fe57d1ff19119358f68b0a949780344136045d8
Author: Øyvind Harboe <[email protected]>
Date:   Tue Nov 8 17:52:50 2011 +0100

    warning: fix warning by telling compiler that local variable is set
    
    a superior soultion would be to break apart long fn.
    
    Change-Id: Ic2f0430f6dfd42690f09f59f41e71eb2c93c88d5
    Signed-off-by: Øyvind Harboe <[email protected]>

diff --git a/src/flash/nand/core.c b/src/flash/nand/core.c
index d9bb7de..a4d3e1b 100644
--- a/src/flash/nand/core.c
+++ b/src/flash/nand/core.c
@@ -412,6 +412,8 @@ int nand_probe(struct nand_device *nand)
        if (nand->device->page_size == 0 ||
            nand->device->erase_size == 0)
        {
+               /* tell compiler that this variable will be set */
+               id_buff[4] = 0;
                if (nand->bus_width == 8)
                {
                        nand->controller->read_data(nand, id_buff + 3);

-- 

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Openocd-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to