[Gllug] Pointer arithmetic with void *

Nix nix at esperi.demon.co.uk
Tue Aug 20 23:07:17 UTC 2002


On Mon, 19 Aug 2002, Tethys moaned:
> 
>>As such, the extension is rejected when -ansi, -std=c89 or anything
>>equivalent to it, or -std=c99 or anything equivalent to that is
>>provided; also, -Wpointer-arith warns about such things.
> 
> Nope. -ansi, -std=c89 and -std=c99 all happily compile it without
> comment (at least with gcc-2."96"-110 from RH-7.3). -pedantic picks
> it up, as does -Wpointer-arith, as you mentioned...

I was looking at 3.2...

... which also does that. I read the source rather than running a test,
and misread it.

Well, *I* think that's a bug: -ansi *should* damn well pick it up.
I'm filing a bug in GNATS accordingly.

-- 
`Mips are real and bitrate earnest, shifting spam is not our goal;
 silicon to sand returnest, was not spoken of the soul.'
   --- _Eventful History: Version 1.x_, John M. Ford

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list