This is the mail archive of the
mailing list for the GCC project.
Re: A warning patch, ptr assignment cleanup + error w/define after col 0
- To: zack at rabi dot columbia dot edu
- Subject: Re: A warning patch, ptr assignment cleanup + error w/define after col 0
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Tue, 23 Mar 1999 10:36:17 -0500 (EST)
- Cc: egcs-patches at egcs dot cygnus dot com, law at cygnus dot com
> From: Zack Weinberg <email@example.com>
> On Sat, 20 Mar 1999 12:14:25 -0500 (EST), "Kaveh R. Ghazi" wrote:
> > > From: Zack Weinberg <firstname.lastname@example.org>
> > >
> > > 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).
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 R. Ghazi Engagement Manager / Project Services
email@example.com Qwest Internet Solutions