mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
added unused attribute to suppress warnings generated by XBOXONE.cpp
This commit is contained in:
parent
88fe28f7f5
commit
5731eda1cb
1 changed files with 11 additions and 3 deletions
12
XBOXONE.cpp
12
XBOXONE.cpp
|
@ -236,7 +236,13 @@ 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,
|
||||||
|
uint8_t iface __attribute__((unused)),
|
||||||
|
uint8_t alt __attribute__((unused)),
|
||||||
|
uint8_t proto __attribute__((unused)),
|
||||||
|
const USB_ENDPOINT_DESCRIPTOR *pep)
|
||||||
|
{
|
||||||
|
|
||||||
bConfNum = conf;
|
bConfNum = conf;
|
||||||
uint8_t index;
|
uint8_t index;
|
||||||
|
|
||||||
|
@ -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