Skip to content
Commit d67096da authored by Mark Ruvald Pedersen's avatar Mark Ruvald Pedersen Committed by Anas Nashif
Browse files

portability: Avoid void* arithmetics which is a GNU extension

Under GNU C, sizeof(void) = 1. This commit merely makes it explicit u8.

Pointer arithmetics over void types is:
 * A GNU C extension
 * Not supported by Clang
 * Illegal across all ISO C standards

See also: https://gcc.gnu.org/onlinedocs/gcc/Pointer-Arith.html



Signed-off-by: default avatarMark Ruvald Pedersen <mped@oticon.com>
parent a82cb244
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment