This is the mail archive of the
mailing list for the GCC project.
Finding unnecessary (K&R compat) casts
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 17 Jul 2003 09:58:11 -0400 (EDT)
- Subject: Finding unnecessary (K&R compat) casts
We have all these now unnecessary casts previously included for K&R
compatibility, e.g. the return type of allocating functions or the
arguments of memcpy, etc. Basically stuff possibly declared as PTR
either now or in the past.
I wanted to generate a complete list of such functions to know where
to look for zapping spurious casts. So far I have these for return
for argument casts I have these functions:
Can anyone think of anything else?
Kaveh R. Ghazi email@example.com