No break at the end of case
The following code produced the warning, “No break at the end of case.
If default: is removed the warning goes away.
I do not believe that System Wrokbench should complain as the code is legal syntax.
case USB_REQ_TYPE_STANDARD:
switch (req->bRequest)
{
case USB_REQ_GET_INTERFACE :
USBD_CtlSendData (pdev,
&ifalt,
1);
break;
case USB_REQ_SET_INTERFACE :
break;
}
default:
break;