From df65b3829eb6d406df47a09372b93cb68af26dcc Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Fri, 12 Jul 2024 13:57:51 +0200 Subject: [PATCH] fix(usb): variable declaration after label for clang --- components/usb/hcd_dwc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/usb/hcd_dwc.c b/components/usb/hcd_dwc.c index 9911c62466..345cbe4707 100644 --- a/components/usb/hcd_dwc.c +++ b/components/usb/hcd_dwc.c @@ -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);