This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Arithmetik on void pointers in libgcc2 sources


 > 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]