mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Removed compiler warnings in module XBOXONE by adding unused attribute
This commit is contained in:
commit
0bafc879e0
1 changed files with 11 additions and 3 deletions
14
XBOXONE.cpp
14
XBOXONE.cpp
|
@ -236,8 +236,14 @@ Fail:
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Extracts endpoint information from config descriptor */
|
/* Extracts endpoint information from config descriptor */
|
||||||
void XBOXONE::EndpointXtract(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *pep) {
|
void XBOXONE::EndpointXtract(uint8_t conf,
|
||||||
bConfNum = conf;
|
uint8_t iface __attribute__((unused)),
|
||||||
|
uint8_t alt __attribute__((unused)),
|
||||||
|
uint8_t proto __attribute__((unused)),
|
||||||
|
const USB_ENDPOINT_DESCRIPTOR *pep)
|
||||||
|
{
|
||||||
|
|
||||||
|
bConfNum = conf;
|
||||||
uint8_t index;
|
uint8_t index;
|
||||||
|
|
||||||
if((pep->bmAttributes & bmUSB_TRANSFER_TYPE) == USB_TRANSFER_TYPE_INTERRUPT) { // Interrupt endpoint
|
if((pep->bmAttributes & bmUSB_TRANSFER_TYPE) == USB_TRANSFER_TYPE_INTERRUPT) { // Interrupt endpoint
|
||||||
|
@ -256,7 +262,9 @@ void XBOXONE::EndpointXtract(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t p
|
||||||
bNumEP++;
|
bNumEP++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void XBOXONE::PrintEndpointDescriptor(const USB_ENDPOINT_DESCRIPTOR* ep_ptr) {
|
void XBOXONE::PrintEndpointDescriptor(const USB_ENDPOINT_DESCRIPTOR* ep_ptr
|
||||||
|
__attribute__((unused)))
|
||||||
|
{
|
||||||
#ifdef EXTRADEBUG
|
#ifdef EXTRADEBUG
|
||||||
Notify(PSTR("\r\nEndpoint descriptor:"), 0x80);
|
Notify(PSTR("\r\nEndpoint descriptor:"), 0x80);
|
||||||
Notify(PSTR("\r\nLength:\t\t"), 0x80);
|
Notify(PSTR("\r\nLength:\t\t"), 0x80);
|
||||||
|
|
Loading…
Reference in a new issue