Skip to content

Unused parameter warning for PICO_RP2040 buildΒ #2662

@martinbudden

Description

@martinbudden

For PICO_RP2040 builds dma_encode_transfer_count_with_self_trigger creates an unused parameter warning when built with -Wunused-parameter compiler flag. See below.

static inline uint32_t dma_encode_transfer_count_with_self_trigger(uint transfer_count) {
#if PICO_RP2040
    panic_unsupported();
#else
    return dma_encode_transfer_count(transfer_count) | (DMA_CH0_TRANS_COUNT_MODE_VALUE_TRIGGER_SELF << DMA_CH0_TRANS_COUNT_MODE_LSB);
#endif
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions