Skip to content
Commit cf34afd2 authored by Sören Tempel's avatar Sören Tempel Committed by Anas Nashif
Browse files

testsuite: coverage: fix -Wcast-align warning



While porting the coverage.c file from RIOT to Zephyr, which employs
different compiler flags, I noticed several -Wcast-align GCC warnings on
arm. I think, as is, the current implementation may perform unaligned
memory accesses which may not be supported on certain platforms. To
workaround that, I have rewritten the code for RIOT using
bytewise-writes with `memcpy`.

Signed-off-by: default avatarSören Tempel <tempel@uni-bremen.de>
parent 0a7a61f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment