-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
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.
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
The merge-base changed after approval.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
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