Skip to content

Conversation

@earlephilhower
Copy link
Contributor

The sideset_bit_count in pio_encode_sideset_opt is unsigned, so "sideset_bit_count >= 0" will always be true. GCC with pedantic warnings will complain when this happens.

Remove the unneeded >=0 portion of the parameter validity check.

Fixes #2607

The sideset_bit_count in pio_encode_sideset_opt is unsigned, so any comparison
"sideset_bit_count >= 0" will always be true.  GCC with pedantic warnings
will complain when this happens.

Remove the unneeded >=0 portion of the parameter validity check.

Fixes raspberrypi#2607
@kilograham kilograham merged commit ad2f414 into raspberrypi:develop Sep 10, 2025
1 check passed
@earlephilhower earlephilhower deleted the pr9 branch September 10, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants