This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Remove unnecessary casts
- From: Jens-Michael Hoffmann <jensmh at gmx dot de>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 14 Nov 2002 01:56:29 +0100
- Subject: Re: [patch] Remove unnecessary casts
- Organization: Hoffmann Information Services GmbH
- References: <200211140127.48152.jensmh@gmx.de> <87u1il7zp8.fsf@egil.codesourcery.com>
> Most of these (I only skimmed your patch) cast the return value of a
> memory allocation function. It is my understanding that these casts
> are still necessary, since we are still requiring the ability to
> build GCC with a K+R compiler, which has no concept of "void *".
Isn't it sufficient when gcc -Wtraditional gives no warnings?
Jens-Michael