This is an automated email from Gerrit.

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

-- gerrit

commit 3199e96ea7f38baad0863807410d6f2bde70c187
Author: Alexandru Gagniuc <[email protected]>
Date:   Sun Oct 27 11:59:47 2019 -0500

    jtag: usb_blaster: Add missing 'default' to switch statement
    
    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]>

diff --git a/src/jtag/drivers/usb_blaster/usb_blaster.c 
b/src/jtag/drivers/usb_blaster/usb_blaster.c
index 165ebdc..48534a2 100644
--- a/src/jtag/drivers/usb_blaster/usb_blaster.c
+++ b/src/jtag/drivers/usb_blaster/usb_blaster.c
@@ -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;
                }
        }
 

-- 


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to