summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2024-08-21 20:06:55 +0800
committersakumisu <[email protected]>2024-08-21 20:08:47 +0800
commit35da8d6747f51b3fa68b1a7a47f88dbcc890ed09 (patch)
tree8fcfb185322cfa311e719c8965ccf067c5be0af4 /core
parent43dc854b4d8f71cfe4edad6343044660c6476d5d (diff)
fix: fix -Wunused-parameter warning with -Wextra cflag
Diffstat (limited to 'core')
-rw-r--r--core/usbd_core.c4
-rw-r--r--core/usbd_core.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/core/usbd_core.c b/core/usbd_core.c
index 318e0267..8eda36f4 100644
--- a/core/usbd_core.c
+++ b/core/usbd_core.c
@@ -1186,6 +1186,8 @@ void usbd_event_ep0_in_complete_handler(uint8_t busid, uint8_t ep, uint32_t nbyt
{
struct usb_setup_packet *setup = &g_usbd_core[busid].setup;
+ (void)ep;
+
g_usbd_core[busid].ep0_data_buf += nbytes;
g_usbd_core[busid].ep0_data_buf_residue -= nbytes;
@@ -1225,6 +1227,8 @@ void usbd_event_ep0_out_complete_handler(uint8_t busid, uint8_t ep, uint32_t nby
{
struct usb_setup_packet *setup = &g_usbd_core[busid].setup;
+ (void)ep;
+
if (nbytes > 0) {
g_usbd_core[busid].ep0_data_buf += nbytes;
g_usbd_core[busid].ep0_data_buf_residue -= nbytes;
diff --git a/core/usbd_core.h b/core/usbd_core.h
index ab7be7f1..f50432a7 100644
--- a/core/usbd_core.h
+++ b/core/usbd_core.h
@@ -72,7 +72,7 @@ struct usb_descriptor {
const char *(*string_descriptor_callback)(uint8_t speed, uint8_t index);
const struct usb_msosv1_descriptor *msosv1_descriptor;
const struct usb_msosv2_descriptor *msosv2_descriptor;
- const struct usb_webusb_url_ex_descriptor *webusb_url_descriptor;
+ const struct usb_webusb_descriptor *webusb_url_descriptor;
const struct usb_bos_descriptor *bos_descriptor;
};