[Bug c/34326] pointer arithmetic on void pointers does not generate an error

2007-12-03 Thread brian at dessent dot net
--- 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 . I think you can disable it with -std=c89 or -std

[Bug c/34326] pointer arithmetic on void pointers does not generate an error

2007-12-03 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2007-12-03 16:24 --- This is a GCC extension. Use -pedantic to get a warning, -pedantic-errors to get an error. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c/34326] pointer arithmetic on void pointers does not generate an error

2007-12-03 Thread jmparker at marvell dot com
--- Comment #1 from jmparker at marvell dot com 2007-12-03 16:03 --- Created an attachment (id=14694) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14694&action=view) simple .c example -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34326