xsvf: -Wshadow warning fixes
I think this fixed an error message where the error message would show the *previous* uc code rather than the current unsupported uc code. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
parent
9bbbbdc0bd
commit
cd9c61cc06
|
@ -269,7 +269,6 @@ COMMAND_HANDLER(handle_xsvf_command)
|
||||||
*/
|
*/
|
||||||
if (collecting_path) {
|
if (collecting_path) {
|
||||||
tap_state_t mystate;
|
tap_state_t mystate;
|
||||||
uint8_t uc;
|
|
||||||
|
|
||||||
switch (opcode) {
|
switch (opcode) {
|
||||||
case XCOMMENT:
|
case XCOMMENT:
|
||||||
|
@ -565,7 +564,6 @@ COMMAND_HANDLER(handle_xsvf_command)
|
||||||
case XSTATE:
|
case XSTATE:
|
||||||
{
|
{
|
||||||
tap_state_t mystate;
|
tap_state_t mystate;
|
||||||
uint8_t uc;
|
|
||||||
|
|
||||||
if (read(xsvf_fd, &uc, 1) < 0)
|
if (read(xsvf_fd, &uc, 1) < 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue