[riot-notifications] [RIOT-OS/RIOT] cpu/esp*: Fix cast alignment issues (#15464)
Marian Buschsieweke
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:
https://github.com/RIOT-OS/RIOT/pull/15464
-- 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 --
https://github.com/RIOT-OS/RIOT/pull/15464.patch
https://github.com/RIOT-OS/RIOT/pull/15464.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15464
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201118/337453f5/attachment.htm>
More information about the notifications
mailing list