misc: Clean up a pile of -Wunused-const-variable warnings

And re-enable the warning (applies to GCC 6+)

Change-Id: I7aa679ec65707db12de83c0433966b3821d07087
This commit is contained in:
Solomon Peachy 2025-04-21 21:11:57 -04:00
parent c7eda36341
commit 9d4632b0c3
11 changed files with 29 additions and 17 deletions

View file

@ -158,12 +158,14 @@ static const char* const dw_state_str[EP0_NUM_STATES] =
[EP0_STATUS_OUT] = "sts_out",
};
#if 0
static const char* const dw_resp_str[3] =
{
[USB_CONTROL_ACK] = "ACK",
[USB_CONTROL_RECEIVE] = "RECV",
[USB_CONTROL_STALL] = "STALL",
};
#endif
static struct usb_dw_ep usb_dw_ep_list[USB_NUM_ENDPOINTS][USB_DW_NUM_DIRS];
static struct usb_dw_ep0 ep0;