Arithmetik on void pointers in libgcc2 sources
Philipp Thomas
pthomas@suse.de
Mon Jun 5 14:31:00 GMT 2000
* Kaveh R. Ghazi (ghazi@caip.rutgers.edu) [20000605 17:13]:
> You could also cast the relevant pointers to char* in the arithmetic
> expressions.
Yes, I know I could do that as well, but for code that will only be compiled
by gcc, why not use __extension__?
> PS: why do you want to add -Wpointer-arith? Doesn't -pedantic
> already show -Wpointer-arith problems along with extra stuff?
Nope, it doesn't. Just try for yourself and you'll see the difference.
Philipp
--
Philipp Thomas <pthomas@suse.de>
Development, SuSE GmbH, Schanzaecker Str. 10, D-90443 Nuremberg, Germany
#define NINODE 50 /* number of in core inodes */
#define NPROC 30 /* max number of processes */
-- Version 7 UNIX fuer PDP 11, /usr/include/sys/param.h
More information about the Gcc-bugs
mailing list