Skip to content

Enable & Address -Wtype-limits diagnostics in raspberrypi port #10187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 26, 2025

Conversation

jepler
Copy link

@jepler jepler commented Mar 26, 2025

This fixes an unlikely problem with the USB host implementation on rp2350 that would not have detected failure to allocate a DMA channel.

Together with #10186 this should give a clean build. As such, this PR includes the current version of #10168 changes. If that PR is rebased, this PR should be rebased as well. The change of interest is 8097e3d

This fixes an unlikely problem with the USB host implementation on
rp2350 that would not have detected failure to allocate a DMA channel.

Together with adafruit#10186 this should give a clean build. As it is,
this will error.
Copy link
Author

@jepler jepler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it wouldn't hurt to investigate whether this diagnostic can be enabled on other ports.

@@ -222,7 +222,7 @@ endif

DISABLE_WARNINGS = -Wno-cast-align

CFLAGS += $(INC) -Wall -Werror -std=gnu11 -fshort-enums $(BASE_CFLAGS) $(CFLAGS_MOD) $(COPT) $(DISABLE_WARNINGS) -Werror=missing-prototypes
CFLAGS += $(INC) -Wtype-limits -Wall -Werror -std=gnu11 -fshort-enums $(BASE_CFLAGS) $(CFLAGS_MOD) $(COPT) $(DISABLE_WARNINGS) -Werror=missing-prototypes
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this submodule has a harmless -Wtype-limits diagnostic that I didn't want to go through the trouble of fixing.

@jepler jepler requested review from dhalbert and eightycc March 26, 2025 17:46
eightycc
eightycc previously approved these changes Mar 26, 2025
Copy link
Collaborator

@eightycc eightycc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@jepler jepler dismissed eightycc’s stale review March 26, 2025 19:11

The merge-base changed after approval.

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dhalbert dhalbert merged commit 3da012d into adafruit:9.2.x Mar 26, 2025
612 checks passed
@jepler jepler deleted the warn-type-limits branch March 26, 2025 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants