From c9832bc34e4829cc59b335215779cd1f25def9be Mon Sep 17 00:00:00 2001 From: rechrtb Date: Tue, 23 Apr 2024 19:09:09 +0800 Subject: [PATCH] Add noexcept specifiers to fix CoreN2G build --- src/device/usbd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/device/usbd.h b/src/device/usbd.h index 118e53ce46..a33b385ad0 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -110,15 +110,15 @@ bool tud_control_status(uint8_t rhport, tusb_control_request_t const * request); // Invoked when received GET DEVICE DESCRIPTOR request // Application return pointer to descriptor -uint8_t const * tud_descriptor_device_cb(void); +uint8_t const * tud_descriptor_device_cb(void) noexcept; // Invoked when received GET CONFIGURATION DESCRIPTOR request // Application return pointer to descriptor, whose contents must exist long enough for transfer to complete -uint8_t const * tud_descriptor_configuration_cb(uint8_t index); +uint8_t const * tud_descriptor_configuration_cb(uint8_t index) noexcept; // Invoked when received GET STRING DESCRIPTOR request // Application return pointer to descriptor, whose contents must exist long enough for transfer to complete -uint16_t const* tud_descriptor_string_cb(uint8_t index, uint16_t langid); +uint16_t const* tud_descriptor_string_cb(uint8_t index, uint16_t langid) noexcept; // Invoked when received GET BOS DESCRIPTOR request // Application return pointer to descriptor