[Janitor] Convert ggc-* to ISO C90
Zack Weinberg
zack@codesourcery.com
Sat Jun 7 19:57:00 GMT 2003
Andreas Jaeger <aj@suse.de> writes:
> Zack Weinberg <zack@codesourcery.com> writes:
>
>> Andreas Jaeger <aj@suse.de> writes:
>>
>>> - htab_traverse_noresize (*cti->base, ggc_htab_delete, (PTR) cti);
>>> + htab_traverse_noresize (*cti->base, ggc_htab_delete, (void *) cti);
>>
>> Casts to (void *) are unnecessary, unless the function takes a
>> variable number of arguments.
>
> Ok, I'll remove these with a separate patch.
It's also worth pointing out that casts *from* void * are unnecessary
to. This comes up a lot with allocator routines:
struct foo *foo = (struct foo *) xmalloc (sizeof (struct foo));
the cast can now be removed.
zw
More information about the Gcc-patches
mailing list