This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Arithmetik on void pointers in libgcc2 sources
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: Arithmetik on void pointers in libgcc2 sources
- From: Philipp Thomas <pthomas at suse dot de>
- Date: Mon, 5 Jun 2000 23:31:09 +0200
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <200006051513.LAA18844@caip.rutgers.edu>
* 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