Fixed other trivial warnings in AVR USB core.

See #1877
This commit is contained in:
Cristian Maglie 2014-04-20 23:08:55 +02:00
parent 3d795c374b
commit f864cdcff2
3 changed files with 5 additions and 4 deletions

View File

@ -115,11 +115,11 @@ bool WEAK CDC_Setup(Setup& setup)
int _serialPeek = -1;
void Serial_::begin(unsigned long baud_count)
void Serial_::begin(unsigned long /* baud_count */)
{
}
void Serial_::begin(unsigned long baud_count, byte config)
void Serial_::begin(unsigned long /* baud_count */, byte /* config */)
{
}

View File

@ -151,7 +151,7 @@ int WEAK HID_GetInterface(u8* interfaceNum)
return USB_SendControl(TRANSFER_PGM,&_hidInterface,sizeof(_hidInterface));
}
int WEAK HID_GetDescriptor(int i)
int WEAK HID_GetDescriptor(int /* i */)
{
return USB_SendControl(TRANSFER_PGM,_hidReportDescriptor,sizeof(_hidReportDescriptor));
}

View File

@ -94,7 +94,8 @@ volatile u8 _usbConfiguration = 0;
static inline void WaitIN(void)
{
while (!(UEINTX & (1<<TXINI)));
while (!(UEINTX & (1<<TXINI)))
;
}
static inline void ClearIN(void)