This is an automated email from Gerrit.

Rainer Müller (rai...@codingfarm.de) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/1946

-- gerrit

commit 68930accf06ea942369b0ee7066e5ba6e2c02990
Author: Rainer Müller <rai...@codingfarm.de>
Date:   Wed Feb 12 15:22:29 2014 +0100

    ft2232: Fix build error
    
    The statement assigned the variable to itself, raising a warning with
    clang as shown below. As warnings are promoted to errors with -Werror by
    default, this caused the build to fail.
    
    ft2232.c:1514:7: error: explicitly assigning a variable of type 'int' to 
itself [-Werror,-Wself-assign]
            trst = trst;
            ~~~~ ^ ~~~~
    1 error generated.
    
    Change-Id: I16fd20936f00d7ff82962f4fcc629ff434aa4dce
    Signed-off-by: Rainer Müller <rai...@codingfarm.de>

diff --git a/src/jtag/drivers/ft2232.c b/src/jtag/drivers/ft2232.c
index e07e513..6873283 100644
--- a/src/jtag/drivers/ft2232.c
+++ b/src/jtag/drivers/ft2232.c
@@ -1511,7 +1511,8 @@ static void minimodule_reset(int trst, int srst)
 
 static void turtle_reset(int trst, int srst)
 {
-       trst = trst;
+       /* unused parameter */
+       (void)trst;
 
        if (srst == 1)
                low_output |= nSRST;

-- 

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to