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]
Other format: [Raw text]

Re: [patch] Remove unnecessary casts


> 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


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