commit | d67096da0540ea1b53367e5ecad9d188d6999f7f | [log] [tgz] |
---|---|---|
author | Mark Ruvald Pedersen <mped@oticon.com> | Fri Sep 14 14:24:09 2018 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Fri Sep 28 07:57:28 2018 +0530 |
tree | b5151b409cfa12dfa911112defbf21944c571563 | |
parent | a82cb2442de0d90bd0957a8480be7654f1b5d83a [diff] |
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: Mark Ruvald Pedersen <mped@oticon.com>