-
-
Notifications
You must be signed in to change notification settings - Fork 726
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
Remove -Wno-expansion-to-defined #557
Remove -Wno-expansion-to-defined #557
Conversation
✅ Build completed. ⬇️ Build URL: ℹ️ To test this build:
|
LGTM! @cmaglie are you ok in merging it? |
@matthijskooijman care to rebase on |
The sam.h file uses some non-portable macros that raise a warning in newer gcc version. This warning was supressed in commit 8575a52 (Add -Wno-expansion-to-defined compile warning flag), but this is not ideal. However, since the only thing sam.h does is figure out what CPU is selected and include the right family header, and we always use SAMD21 CPUs, the only thing sam.h does is include samd.h. So we can easily bypass then and include samd.h directly. This fixes the first part of arduino#556.
Now that we no longer include sam.h, this warning is no longer triggered in normal builds, so there is no longer a need to supress it. This fixes arduino#556.
04339d6
to
32f7ac6
Compare
Just rebased. Haven't done any testing after rebasing, but let's see what the CI says :-) |
✅ Build completed. ⬇️ Build URL: ℹ️ To test this build:
|
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.
LGTM 👍 Thank you @matthijskooijman 🚀
By including a different CMSIS header, this warning no longer needs to be supressed.
This fixes #556.