forked from espressif/esp-idf
fix(usb): variable declaration after label for clang
This commit is contained in:
@@ -1263,6 +1263,7 @@ static esp_err_t _port_cmd_reset(port_t *port)
|
|||||||
ret = ESP_OK;
|
ret = ESP_OK;
|
||||||
bailout:
|
bailout:
|
||||||
// Reinitialize channel registers
|
// Reinitialize channel registers
|
||||||
|
(void) 0; // clang doesn't allow variable declarations after labels
|
||||||
pipe_t *pipe;
|
pipe_t *pipe;
|
||||||
TAILQ_FOREACH(pipe, &port->pipes_idle_tailq, tailq_entry) {
|
TAILQ_FOREACH(pipe, &port->pipes_idle_tailq, tailq_entry) {
|
||||||
usb_dwc_hal_chan_set_ep_char(port->hal, pipe->chan_obj, &pipe->ep_char);
|
usb_dwc_hal_chan_set_ep_char(port->hal, pipe->chan_obj, &pipe->ep_char);
|
||||||
|
Reference in New Issue
Block a user