This is an automated email from Gerrit.

Spencer Oliver ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/214

-- gerrit

commit afeac8442b2249269ff45a52ccd3e2870920f635
Author: Spencer Oliver <[email protected]>
Date:   Fri Nov 18 15:02:53 2011 +0000

    Revert "build: fix gcc 4.6.2 warnings"
    
    This reverts commit 0ef5a90d93c5a026bcf70132e60e957ae339d1e1
    
    Causes older versions of gcc to break - need to look into a better fix.
    
    This passed through the jenkins build as we originally did not build this 
module - we do now.

diff --git a/src/jtag/drivers/amt_jtagaccel.c b/src/jtag/drivers/amt_jtagaccel.c
index 424019e..a433e81 100644
--- a/src/jtag/drivers/amt_jtagaccel.c
+++ b/src/jtag/drivers/amt_jtagaccel.c
@@ -68,26 +68,34 @@ static const int addr_mode = IEEE1284_MODE_EPP | 
IEEE1284_ADDR;
 
 #define AMT_AW(val) \
        do { \
-               ioctl(device_handle, PPSETMODE, &addr_mode); \
-               write(device_handle, &val, 1); \
+               int __retval; \
+               \
+               __retval = ioctl(device_handle, PPSETMODE, &addr_mode); \
+               __retval = write(device_handle, &val, 1); \
        } while (0)
 #define AMT_AR(val) \
        do { \
-               ioctl(device_handle, PPSETMODE, &addr_mode); \
-               read(device_handle, &val, 1); \
+               int __retval; \
+               \
+               __retval = ioctl(device_handle, PPSETMODE, &addr_mode); \
+               __retval = read(device_handle, &val, 1); \
        } while (0)
 
 static const int data_mode = IEEE1284_MODE_EPP | IEEE1284_DATA;
 
 #define AMT_DW(val) \
        do { \
-               ioctl(device_handle, PPSETMODE, &data_mode); \
-               write(device_handle, &val, 1); \
+               int __retval; \
+               \
+               __retval = ioctl(device_handle, PPSETMODE, &data_mode); \
+               __retval = write(device_handle, &val, 1); \
        } while (0)
 #define AMT_DR(val) \
        do { \
-               ioctl(device_handle, PPSETMODE, &data_mode); \
-               read(device_handle, &val, 1); \
+               int __retval; \
+               \
+               __retval = ioctl(device_handle, PPSETMODE, &data_mode); \
+               __retval = read(device_handle, &val, 1); \
        } while (0)
 
 #else

-- 

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to