Skip to content

fix: Fix build errors on GCC15#381

Merged
hathach merged 2 commits intoadafruit:masterfrom
ReFil:gcc-15-fixes
Feb 3, 2026
Merged

fix: Fix build errors on GCC15#381
hathach merged 2 commits intoadafruit:masterfrom
ReFil:gcc-15-fixes

Conversation

@ReFil
Copy link
Contributor

@ReFil ReFil commented Jan 28, 2026

Checklist

By completing this PR sufficiently, you help us to review this Pull Request quicker and also help improve the quality of Release Notes

  • Please provide specific title of the PR describing the change

Description of Change

Much like with GCC 12, 13 and 14 GCC 15 will throw array initialisation errors during compilation when performuing register accesses in bootloader_settings.c. GCC 15 also throws an error around the handling of string like non-string elements in ghostfat.c. This PR adds gcc 15 to the workaround versions in the makefile to fix the first error and adds a new nonstring define which resolves to blank if the attribute isn't available for the second

@ReFil
Copy link
Contributor Author

ReFil commented Feb 2, 2026

fixes #373

- correct usage of __has_attribute(nonstring) and rename to ATTR_NOSTRING
Copy link
Member

@hathach hathach left a comment

Choose a reason for hiding this comment

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

thank you for your PR. I made minor adjustment

  • added pragma GCC diagnostic ignored, that we fixed this once and for all.
  • Also corect usage of __has_attribute(nonstring) and rename it to ATTR_NOSTRING

@hathach hathach merged commit 6180d8a into adafruit:master Feb 3, 2026
50 checks passed
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.

2 participants