Skip to content

Commit 4e896b7

Browse files
committed
fix warning with ci build for rp2040 core
1 parent 40eb4e6 commit 4e896b7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/portable/raspberrypi/rp2040/dcd_rp2040.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ void dcd_int_disable(uint8_t rhport)
434434

435435
void dcd_set_address (uint8_t rhport, uint8_t dev_addr)
436436
{
437+
(void) dev_addr;
437438
pico_trace("dcd_set_address %d %d\n", rhport, dev_addr);
438439
assert(rhport == 0);
439440

@@ -517,6 +518,9 @@ void dcd_edpt_clear_stall (uint8_t rhport, uint8_t ep_addr)
517518

518519
void dcd_edpt_close (uint8_t rhport, uint8_t ep_addr)
519520
{
521+
(void) rhport;
522+
(void) ep_addr;
523+
520524
// usbd.c says: In progress transfers on this EP may be delivered after this call
521525
pico_trace("dcd_edpt_close %d %02x\n", rhport, ep_addr);
522526

src/portable/raspberrypi/rp2040/rp2040_usb.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ static inline void _hw_endpoint_lock_update(struct hw_endpoint *ep, int delta) {
4141
// todo add critsec as necessary to prevent issues between worker and IRQ...
4242
// note that this is perhaps as simple as disabling IRQs because it would make
4343
// sense to have worker and IRQ on same core, however I think using critsec is about equivalent.
44+
(void) ep;
45+
(void) delta;
4446
}
4547

4648
#if TUSB_OPT_HOST_ENABLED

0 commit comments

Comments
 (0)