fix(usb): variable declaration after label for clang

This commit is contained in:
Ivan Grokhotkov 2024-07-12 13:57:51 +02:00
parent c921824230
commit df65b3829e
No known key found for this signature in database
GPG Key ID: 1E050E141B280628

View File

@ -1263,6 +1263,7 @@ static esp_err_t _port_cmd_reset(port_t *port)
ret = ESP_OK;
bailout:
// Reinitialize channel registers
(void) 0; // clang doesn't allow variable declarations after labels
pipe_t *pipe;
TAILQ_FOREACH(pipe, &port->pipes_idle_tailq, tailq_entry) {
usb_dwc_hal_chan_set_ep_char(port->hal, pipe->chan_obj, &pipe->ep_char);