Portability: Arithmetic on void pointers #9879
Labels
area: Portability
Standard compliant code, toolchain abstraction
area: Toolchains
Toolchains
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Hi,
One use of GCC extensions we are patching-away is the use of arithmetic on void pointers [1].
PR will follow soon, but this issue is raised to also discourage future use of this extension.
Arithmetics on void pointers are used in bluetooth/gatt.h and mempool.
We patch this as our clang-based compiler only supports standard C99, C11.
Note that our compiler is provided by one of the major EDA vendors. While this is a trivial issue, it affects portabillity and patching incurs legal issues with respect to Certification, FDA, etc.
Best regards,
Mark
[1] https://gcc.gnu.org/onlinedocs/gcc/Pointer-Arith.html
The text was updated successfully, but these errors were encountered: