Skip to content

Commit 7003833

Browse files
committed
unnamed paramters are illegal in C
1 parent da5bc86 commit 7003833

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/class/vendor/vendor_device.c

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,16 @@ bool vendord_xfer_cb(uint8_t rhport, uint8_t ep_addr, xfer_result_t result, uint
279279
}
280280

281281
// Dummy implementatiions of weak callbacks
282-
TU_ATTR_WEAK void tud_vendor_rx_cb(uint8_t, uint8_t const*, uint16_t) {}
283-
TU_ATTR_WEAK void tud_vendor_tx_cb(uint8_t, uint32_t) {}
282+
TU_ATTR_WEAK void tud_vendor_rx_cb(uint8_t itf, uint8_t const* buffer, uint16_t bufsize)
283+
{
284+
(void)itf;
285+
(void)buffer;
286+
(void)bufsize;
287+
}
288+
TU_ATTR_WEAK void tud_vendor_tx_cb(uint8_t itf, uint32_t sent_bytes)
289+
{
290+
(void)itf;
291+
(void)sent_bytes;
292+
}
284293

285294
#endif

0 commit comments

Comments
 (0)