Thomas Schwinge <[EMAIL PROTECTED]> 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 _______________________________________________ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/bug-hurd