Re: Warnings compiling modules on test3-pre2

From: Andrew Morton (andrewm@uow.edu.au)
Date: Sun Jul 02 2000 - 21:09:41 EST


Pavel Roskin wrote:
>
> 3c59x.c:2516: warning: `vortex_init' defined but not used
> 3c59x.c:2563: warning: `vortex_cleanup' defined but not used

Ugh. I use gcc 2.7.2.3.

This has been discussed before - Jeff, what's the story here? Is

static int __init foo_init (void) {}

the correct way to declare a module destructor? Is there a standard,
magical workaround to prevent the warning?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jul 07 2000 - 21:00:09 EST