[riot-notifications] [RIOT-OS/RIOT] cpu/esp*: Fix cast alignment issues (#15464)
notifications at github.com
Wed Nov 18 10:22:37 CET 2020
### Contribution description
- Add `WORD_ALIGNED` attribute to potentially unaligned allocations
- Use intermediate cast to `uintptr_t` to silence false positives of `-Wcast-align`
### Testing procedure
Hopefully, the allocations previously missing the `WORD_ALIGNED` attribute ended up word aligned by luck, so binaries don't change. Otherwise, this fixes a bug.
### Issues/PRs references
Needed for https://github.com/RIOT-OS/RIOT/pull/14955
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* cpu/esp*: Fix cast alignment issues
-- File Changes --
M cpu/esp8266/vendor/Makefile (3)
M cpu/esp_common/periph/flash.c (15)
M cpu/esp_common/thread_arch.c (16)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications