On Thu, 28 Jan 1999, Carl Schofield wrote:
> I am using slakware 3.1, kernel 2.0.36, diald-0.98.1, on compiling I
> get the following error / warning :
> [...]
> timer.c: In function `validate_function':
> timer.c:86: warning: comparison of distinct pointer types lacks a cast
> timer.c:87: warning: comparison of distinct pointer types lacks a cast
> [...]
> Any thoughts?
The timer queue struct contains a point to a void function
which takes a void * as an argument. The actual timer uses
use functions which take pointers to specific objects depending
what the timer is being used for. Although a void * is compatible
with any other pointer a function pointer that takes a void *
is not compatible with a function pointer that takes a pointer
to something else. So gcc warns you. It's too much hassle
to clean up.
Mike
--
.----------------------------------------------------------------------.
| Mike Jagdis | Internet: [EMAIL PROTECTED] |
| 280, Silverdale Road, Earley, | Voice: +44 118 926 6996 |
| Reading RG6 7NU ENGLAND | Work: +44 118 989 0403 |
`----------------------------------------------------------------------'
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]