diff options
author | Freddie Chopin <freddie_chopin@op.pl> | 2010-06-17 20:26:48 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-06-17 21:10:01 +0200 |
commit | 3eaab9b55b92a4b52e0a31b9c06da8a904a1dddb (patch) | |
tree | e75637d1e0c724a98fe030f42a36d2fa24eab0f7 | |
parent | 647fe050db9ea709f7624c7330c1315251eb9114 (diff) | |
download | openocd_libswd-3eaab9b55b92a4b52e0a31b9c06da8a904a1dddb.tar.gz openocd_libswd-3eaab9b55b92a4b52e0a31b9c06da8a904a1dddb.tar.bz2 openocd_libswd-3eaab9b55b92a4b52e0a31b9c06da8a904a1dddb.tar.xz openocd_libswd-3eaab9b55b92a4b52e0a31b9c06da8a904a1dddb.zip |
mingw32: -Wshadow fixes in rlink.c
(error: declaration of ‘byte’ shadows a global declaration; /usr/local/lib/gcc/i686-w64-mingw32/4.4.2/../../../../i686-w64-mingw32/include/rpcndr.h:50: error: shadowed declaration is here)
Signed-off-by: Freddie Chopin <freddie_chopin@op.pl>
-rw-r--r-- | src/jtag/drivers/rlink.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/jtag/drivers/rlink.c b/src/jtag/drivers/rlink.c index 2905bf26..dde117b0 100644 --- a/src/jtag/drivers/rlink.c +++ b/src/jtag/drivers/rlink.c @@ -824,21 +824,21 @@ int tap_state_queue_run(void) { int i; int bits; - uint8_t byte; + uint8_t byte_param; int retval; retval = 0; if (!tap_state_queue.length) return(retval); bits = 1; - byte = 0; + byte_param = 0; for (i = tap_state_queue.length; i--;) { - byte <<= 1; + byte_param <<= 1; if (tap_state_queue.buffer & 1) { - byte |= 1; + byte_param |= 1; } if ((bits >= 8) || !i) { - byte <<= (8 - bits); + byte_param <<= (8 - bits); /* make sure there's room for stop, byte op, and one byte */ if (dtc_queue.cmd_index >= (sizeof(dtc_queue.cmd_buffer) - (1 + 1 + 1))) { @@ -860,9 +860,9 @@ tap_state_queue_run(void) { #endif dtc_queue.cmd_buffer[dtc_queue.cmd_index++] = - byte; + byte_param; - byte = 0; + byte_param = 0; bits = 1; } else { bits++; |