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: pthomas at suse dot de
- Subject: Re: Arithmetik on void pointers in libgcc2 sources
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Tue, 6 Jun 2000 08:46:40 -0400 (EDT)
- Cc: gcc-bugs at gcc dot gnu dot org
> From: Philipp Thomas <pthomas@suse.de>
>
> * 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__?
Using __extension__ turns off more than the warning you mentioned. My
general approach is to try and fix the particular warning so if by
some chance some other one would have triggered we are not masking it
with __extension__.
I don't feel strongly about it so feel free to pick which ever
approach you prefer.
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions