This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Removing casts from code
- From: Ulrich Drepper <drepper at redhat dot com>
- To: Roland McGrath <roland at redhat dot com>
- Cc: Art Haas <ahaas at airmail dot net>, libc-alpha at sources dot redhat dot com
- Date: Mon, 06 Jan 2003 19:08:43 -0800
- Subject: Re: Removing casts from code
- Organization: Red Hat, Inc.
- References: <200301070301.h0731qw10042@magilla.sf.frob.com>
Roland McGrath wrote:
> The code is C (post-1989 C), not C++.
A lot of the code is used outside glibc and perhaps even in C++ code.
> alloca returns void * as well and I have never heard of any reason a cast
> would be needed.
This is a problem with several compilers. The cast is necessary, just
look at the ChangeLog of various GNU packages.
--
--------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------