------- Comment #3 from brian at dessent dot net 2007-12-03 16:25 ------- Subject: Re: New: pointer arithmetic on void pointers does not generate an error
This is a GNU C extension, see <http://gcc.gnu.org/onlinedocs/gcc/Pointer-Arith.html>. I think you can disable it with -std=c89 or -std=c99. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34326