From: Antonio Borneo Date: Thu, 17 Jun 2010 15:12:48 +0000 (+0800) Subject: vsllink: fix -Wshadow warning X-Git-Tag: v0.5.0-rc1~587 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d4e4da0fa177c640196e5bc3476ed03c3a70be00;p=openocd vsllink: fix -Wshadow warning Signed-off-by: Antonio Borneo --- diff --git a/src/jtag/drivers/vsllink.c b/src/jtag/drivers/vsllink.c index 450ce062..7533a090 100644 --- a/src/jtag/drivers/vsllink.c +++ b/src/jtag/drivers/vsllink.c @@ -699,20 +699,20 @@ static void vsllink_tap_ensure_pending(int scans) static void vsllink_tap_append_step(int tms, int tdi) { - int index = tap_length / 8; + int index_var = tap_length / 8; int bit_index = tap_length % 8; uint8_t bit = 1 << bit_index; if (tms) - tms_buffer[index] |= bit; + tms_buffer[index_var] |= bit; else - tms_buffer[index] &= ~bit; + tms_buffer[index_var] &= ~bit; if (tdi) - tdi_buffer[index] |= bit; + tdi_buffer[index_var] |= bit; else - tdi_buffer[index] &= ~bit; + tdi_buffer[index_var] &= ~bit; tap_length++;