This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Removing casts from code


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


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