On Mon, Dec 05, 2016 at 09:12:31AM +1100, Dave Chinner wrote: > I thought the C standard specifically disallowed pointer arithmetic > on void pointers because they are an incomplete type, even though > they have the same alignment/representation as a char *. > > IIRC, gcc will throw errors on such code if -pedantic-errors or > -Werror-pointer-arith is specified... void pointer arithmetics is a GNU extension indeed, but on that the kernel relies on heavily. -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html