Skip to content

Commit

Permalink
jtag: usb_blaster: Add missing 'default' to switch statement
Browse files Browse the repository at this point in the history
If a new JTAG command is added, then GCC will complain that
enumeration value not handled in switch. This is the only driver not
to have a default case, so add it.

Change-Id: Icb838087bb7525d057a911bd256300e256da1668
Signed-off-by: Alexandru Gagniuc <[email protected]>
Reviewed-on: http://openocd.zylin.com/5333
Tested-by: jenkins
Reviewed-by: Antonio Borneo <[email protected]>
Reviewed-by: Tomas Vanek <[email protected]>
  • Loading branch information
mrnuke authored and tom-van committed Nov 7, 2019
1 parent 4f779a8 commit 4333339
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/jtag/drivers/usb_blaster/usb_blaster.c
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,11 @@ static int ublast_execute_queue(void)
case JTAG_SCAN:
ret = ublast_scan(cmd->cmd.scan);
break;
default:
LOG_ERROR("BUG: unknown JTAG command type 0x%X",
cmd->type);
ret = ERROR_FAIL;
break;
}
}

Expand Down

0 comments on commit 4333339

Please sign in to comment.