Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove -Wno-expansion-to-defined #557
Conversation
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 #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 #556.
|
LGTM! @cmaglie are you ok in merging it? |
By including a different CMSIS header, this warning no longer needs to be supressed.
This fixes #556.