Fix compilation warnings and errors under GCC 15 - #14
Open
genneth wants to merge 1 commit into
Open
Conversation
genneth
force-pushed
the
main
branch
2 times, most recently
from
June 28, 2026 06:37
14e4b91 to
12728c4
Compare
Author
|
Rebased cleanly onto latest ( release). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Running on Fedora 44: need these to compile cleanly.
Toolchain: arm-none-eabi-gcc version 15.2.0 (specifically 15.2.0-4.fc44).
GCC 15 defaults to
--std=gnu23which is stricter. Apart from some textual stuff (includes, missing defines), there were also two maybe real fixes:fw/User/error.c, where a pointer-to-pointer (&startup_task_handle, orTaskHandle_t **) was incorrectly passed tovTaskPrioritySetinstead of the handle itself (startup_task_handle, orTaskHandle_t).fw/User/usbpd/usb_pd_protocol.c, wherepd_run_state_machineis defined as returningintbut had two early exits returning void.