I'm cross compiling a project for various architectures and OS. Two of them are Android with arm-linux-androideabi-4.9
and Raspbian with arm-linux-gnueabihf-gcc
(4.8.3).
My code has a dependency on the Ne10 project which does some arithmetic on void pointers.
I'm compiling with -Wpedantic
and -Wno-pointer-arith
for the two toolchains however, the Android one compiles fine but the Raspbian one still shows some warning about the void pointer arithmetic.
error: pointer of type 'void *' used in arithmetic [-Werror=pedantic]
I know the warning/error could be removed by removing -Wpedantic
but that's not an option for me.
I am wondering if the issue could come from the difference between the version numbers but the doc of both are the same about the void arithmetic.
Any ideas ?