You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/09/27 10:57:38 UTC

[GitHub] mped-oticon opened a new pull request #11: portability: Avoid void* arithmetics which is a GNU extension

mped-oticon opened a new pull request #11: portability: Avoid void* arithmetics which is a GNU extension
URL: https://github.com/apache/mynewt-nffs/pull/11
 
 
   Found in context of Zephyr.
   
   Under GNU C, sizeof(void) = 1. This commit simply uses uint8_t.
   
   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

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services