GCC documentation says
-Wpointer-Arith Warn about anything that depends on the "size" of the function type or the "void". GNU C assigns these types to size 1, for the convenience of calculations with void * pointers and function pointers. In C ++, also warn that arithmetic operations use "NULL".
But I canβt figure out where it can be useful, and not create trouble. Any examples?
source share