[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kalloc.c and recent gcc's
From: |
Thomas Bushnell BSG |
Subject: |
Re: kalloc.c and recent gcc's |
Date: |
Sun, 28 Aug 2005 14:51:37 -0700 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
Thomas Schwinge <schwinge-lists-gnu.org-bug-hurd@nic-nac-project.de> writes:
>> > +void (*__malloc_initialize_hook) (void) = (void *) init_hook;
>>
>> Do you really need the void * cast?
> The cast avoids the following warning:
> #v+
> [...]
> ../../hurd-0/mach-defpager/../serverboot/kalloc.c:43: warning: initialization
> from incompatible pointer type
> [...]
> #v-
Ideally, fix the declaration of init_hook. Failing that, at least
give a correct cast instead of kludging with void *.
void (*__malloc_initialize_hook) (void) = (void (*)(void)) init_hook;
Thomas