Skip to content

Fix compilation warnings and errors under GCC 15 - #14

Open
genneth wants to merge 1 commit into
Modos-Labs:mainfrom
genneth:main
Open

Fix compilation warnings and errors under GCC 15#14
genneth wants to merge 1 commit into
Modos-Labs:mainfrom
genneth:main

Conversation

@genneth

@genneth genneth commented Jun 28, 2026

Copy link
Copy Markdown

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=gnu23 which is stricter. Apart from some textual stuff (includes, missing defines), there were also two maybe real fixes:

  1. fw/User/error.c, where a pointer-to-pointer (&startup_task_handle, or TaskHandle_t **) was incorrectly passed to vTaskPrioritySet instead of the handle itself (startup_task_handle, or TaskHandle_t).
  2. fw/User/usbpd/usb_pd_protocol.c, where pd_run_state_machine is defined as returning int but had two early exits returning void.

@genneth

genneth commented Jul 21, 2026

Copy link
Copy Markdown
Author

Rebased cleanly onto latest ( release).

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.

1 participant