Skip to content

Fix header guard definition in system_fs026.h which breaks builds with gcc 15+#440

Open
carlosedp wants to merge 1 commit intoChibiOS:chibios-21.11.xfrom
carlosedp:patch-1
Open

Fix header guard definition in system_fs026.h which breaks builds with gcc 15+#440
carlosedp wants to merge 1 commit intoChibiOS:chibios-21.11.xfrom
carlosedp:patch-1

Conversation

@carlosedp
Copy link
Copy Markdown

This pull request corrects a preprocessor macro definition in the system_fs026.h header file to ensure the correct include guard is used.

  • Fixed the include guard macro from __SYSTEM_ES32F0283_H__ to __SYSTEM_FS026_H__ in system_fs026.h to prevent potential issues with recursive inclusion or incorrect header protection.

The -Werror=header-guard diagnostic (which promotes the mismatched #ifndef/#define guard to a hard error) was introduced/tightened in GCC 15. On GCC 14 the mismatch is silently ignored, on GCC 15 it becomes a build-breaking error.

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