mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-09-10 17:15:43 +00:00
Suppress unused function parameter warnings in the USB driver.
This commit is contained in:
@@ -216,7 +216,9 @@
|
||||
static inline void USB_Device_EnableDeviceAddress(const uint8_t Address) ATTR_ALWAYS_INLINE;
|
||||
static inline void USB_Device_EnableDeviceAddress(const uint8_t Address)
|
||||
{
|
||||
UDADDR |= (1 << ADDEN);
|
||||
(void)Address;
|
||||
|
||||
UDADDR |= (1 << ADDEN);
|
||||
}
|
||||
|
||||
static inline bool USB_Device_IsAddressSet(void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT;
|
||||
|
||||
@@ -214,6 +214,8 @@
|
||||
static inline void USB_Device_EnableDeviceAddress(const uint8_t Address) ATTR_ALWAYS_INLINE;
|
||||
static inline void USB_Device_EnableDeviceAddress(const uint8_t Address)
|
||||
{
|
||||
(void)Address;
|
||||
|
||||
AVR32_USBB.UDCON.adden = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -205,6 +205,8 @@
|
||||
static inline void USB_Device_SetDeviceAddress(const uint8_t Address) ATTR_ALWAYS_INLINE;
|
||||
static inline void USB_Device_SetDeviceAddress(const uint8_t Address)
|
||||
{
|
||||
(void)Address;
|
||||
|
||||
/* No implementation for XMEGA architecture */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user