From da42e8840d760b79462071ff84cdce4ff823ad2c Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 27 Jan 2013 19:48:29 +0000 Subject: [PATCH] Suppress unused function parameter warnings in the USB driver. --- LUFA/DoxygenPages/LUFAPoweredProjects.txt | 1 + LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h | 4 +++- LUFA/Drivers/USB/Core/UC3/Device_UC3.h | 2 ++ LUFA/Drivers/USB/Core/XMEGA/Device_XMEGA.h | 2 ++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/LUFA/DoxygenPages/LUFAPoweredProjects.txt b/LUFA/DoxygenPages/LUFAPoweredProjects.txt index 1854c16f3a..ea3c29e1f2 100644 --- a/LUFA/DoxygenPages/LUFAPoweredProjects.txt +++ b/LUFA/DoxygenPages/LUFAPoweredProjects.txt @@ -38,6 +38,7 @@ * can be incorporated into many different applications. * * \li Accelerometer Game Joystick: http://www.crictor.co.il/he/episodes/joystick/ + * \li Adjacent Reality Motion Tracker: http://www.adjacentreality.org/ * \li AD9833 based USB Function Generator: http://tuomasnylund.fi/drupal6/content/ad9833-based-usb-function-generator * \li AERY development platform for the AVR32 devices: http://www.aery32.com/ * \li AM Radio transmitter: http://amcinnes.info/2012/uc_am_xmit/ diff --git a/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h b/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h index a2a2ddf0e0..a0dba7bc59 100644 --- a/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h +++ b/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.h @@ -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; diff --git a/LUFA/Drivers/USB/Core/UC3/Device_UC3.h b/LUFA/Drivers/USB/Core/UC3/Device_UC3.h index 60a1e27a89..854e321b28 100644 --- a/LUFA/Drivers/USB/Core/UC3/Device_UC3.h +++ b/LUFA/Drivers/USB/Core/UC3/Device_UC3.h @@ -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; } diff --git a/LUFA/Drivers/USB/Core/XMEGA/Device_XMEGA.h b/LUFA/Drivers/USB/Core/XMEGA/Device_XMEGA.h index 6e2380a178..7b82c7c456 100644 --- a/LUFA/Drivers/USB/Core/XMEGA/Device_XMEGA.h +++ b/LUFA/Drivers/USB/Core/XMEGA/Device_XMEGA.h @@ -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 */ }