Warnings I created which don't make sense to me
Evan Schoenberg
evan.s at dreskin.net
Sat Feb 24 13:27:25 EST 2007
I hate muddying up the compiler output with spurious warnings.
My recent changes to proxy.c generated 4 new warnings:
proxy.c: In function `socket_ready_cb':
proxy.c:406: warning: passing arg 2 of `gaim_input_get_error' from
incompatible pointer type
proxy.c: In function `proxy_connect_none':
proxy.c:481: warning: passing arg 2 of `gaim_input_get_error' from
incompatible pointer type
proxy.c: In function `http_canwrite':
proxy.c:805: warning: passing arg 2 of `gaim_input_get_error' from
incompatible pointer type
proxy.c: In function `s4_canwrite':
proxy.c:965: warning: passing arg 2 of `gaim_input_get_error' from
incompatible pointer type
proxy.c: In function `s5_canwrite':
proxy.c:1531: warning: passing arg 2 of `gaim_input_get_error' from
incompatible pointer type
gaim_input_get_error() is defined by eventloop.h as:
int gaim_input_get_error(int fd, int *errno);
And the lines in question look like:
int error = ETIMEDOUT;
int ret;
ret = gaim_input_get_error(connect_data->fd, &error);
Why is &error not an int *?
It'll be really nice when discussion about new code can be back in
public rather than on cabal :)
-Evan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://pidgin.im/cgi-bin/mailman/private/cabal/attachments/20070224/af74ca48/attachment.pgp
More information about the Cabal
mailing list