aboutsummaryrefslogtreecommitdiff
path: root/Projects/RelayBoard/Descriptors.h
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2010-08-24 13:02:38 +0000
committerDean Camera <[email protected]>2010-08-24 13:02:38 +0000
commit092f82e06fc64436fd957b4b6b8d5ce33532efae (patch)
tree3060a52e5f3e3a3486e7d2bd272cfc8e7ab58190 /Projects/RelayBoard/Descriptors.h
parented8ad18f26ef36a7c0cafd3aac1f672a06d14f76 (diff)
downloadqmk_firmware-092f82e06fc64436fd957b4b6b8d5ce33532efae.tar.gz
qmk_firmware-092f82e06fc64436fd957b4b6b8d5ce33532efae.zip
Changed the signature of the CALLBACK_USB_GetDescriptor() callback function so that the descriptor pointer is const, to remove the need for extra casting inside the callback (thanks to Jonathan Kollasch).
Diffstat (limited to 'Projects/RelayBoard/Descriptors.h')
-rw-r--r--Projects/RelayBoard/Descriptors.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Projects/RelayBoard/Descriptors.h b/Projects/RelayBoard/Descriptors.h
index f6357f8212..2cf2e8d698 100644
--- a/Projects/RelayBoard/Descriptors.h
+++ b/Projects/RelayBoard/Descriptors.h
@@ -41,7 +41,6 @@
#include <avr/pgmspace.h>
#include <LUFA/Drivers/USB/USB.h>
-
/* Type Defines: */
/** Type define for the device configuration descriptor structure. This must be defined in the
* application code, as the configuration descriptor contains several sub-descriptors which
@@ -56,6 +55,6 @@
/* Function Prototypes: */
uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
const uint8_t wIndex,
- void** const DescriptorAddress);
-
+ const void** const DescriptorAddress)
+ ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3);
#endif