Skip to content

Commit f864cdc

Browse files
committed
Fixed other trivial warnings in AVR USB core.
See #1877
1 parent 3d795c3 commit f864cdc

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

hardware/arduino/avr/cores/arduino/CDC.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ bool WEAK CDC_Setup(Setup& setup)
115115

116116

117117
int _serialPeek = -1;
118-
void Serial_::begin(unsigned long baud_count)
118+
void Serial_::begin(unsigned long /* baud_count */)
119119
{
120120
}
121121

122-
void Serial_::begin(unsigned long baud_count, byte config)
122+
void Serial_::begin(unsigned long /* baud_count */, byte /* config */)
123123
{
124124
}
125125

hardware/arduino/avr/cores/arduino/HID.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ int WEAK HID_GetInterface(u8* interfaceNum)
151151
return USB_SendControl(TRANSFER_PGM,&_hidInterface,sizeof(_hidInterface));
152152
}
153153

154-
int WEAK HID_GetDescriptor(int i)
154+
int WEAK HID_GetDescriptor(int /* i */)
155155
{
156156
return USB_SendControl(TRANSFER_PGM,_hidReportDescriptor,sizeof(_hidReportDescriptor));
157157
}

hardware/arduino/avr/cores/arduino/USBCore.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ volatile u8 _usbConfiguration = 0;
9494

9595
static inline void WaitIN(void)
9696
{
97-
while (!(UEINTX & (1<<TXINI)));
97+
while (!(UEINTX & (1<<TXINI)))
98+
;
9899
}
99100

100101
static inline void ClearIN(void)

0 commit comments

Comments
 (0)