Skip to content

Commit 17b9144

Browse files
authored
Fix unused parameter warning. (#2663)
1 parent db75b67 commit 17b9144

File tree

1 file changed

+1
-0
lines changed
  • src/rp2_common/hardware_dma/include/hardware

1 file changed

+1
-0
lines changed

src/rp2_common/hardware_dma/include/hardware/dma.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ static inline uint32_t dma_encode_transfer_count(uint transfer_count) {
556556
*/
557557
static inline uint32_t dma_encode_transfer_count_with_self_trigger(uint transfer_count) {
558558
#if PICO_RP2040
559+
(void)transfer_count;
559560
panic_unsupported();
560561
#else
561562
return dma_encode_transfer_count(transfer_count) | (DMA_CH0_TRANS_COUNT_MODE_VALUE_TRIGGER_SELF << DMA_CH0_TRANS_COUNT_MODE_LSB);

0 commit comments

Comments
 (0)