This is the mail archive of the gcc-patches@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: A warning patch, ptr assignment cleanup + error w/define after col 0


 > From: Zack Weinberg <zack@rabi.columbia.edu>
 >  
 > On Sat, 20 Mar 1999 12:14:25 -0500 (EST), "Kaveh R. Ghazi" wrote:
 > > > From: Zack Weinberg <zack@rabi.columbia.edu>
 > > > 
 > > > Of course, the standard string functions' insisting on taking a char *
 > > > doesn't help.
 > > > zw
 > >
 > >       Yes, that's an annoyance.  We're stuck with that...
 >  
 > I wonder if it would be safe to teach gcc that the str* functions may take
 > either char * or unsigned char * (or isomorphic types).
 > zw


	Gcc already quietly accepts pointer assignments that differ in
signed-ness (for all cases, not just the str* functions) unless
-pedantic is specified.  However most stage1 cc compilers at least warn
over this.  Some older ones even error.  That's why I bother to fix them. 

		--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]