it would be nice to get rid of these:
CC (cc) [M pike.so] pike_rpc.o pike_rpc.c: In function ‘traverse_subtree’: pike_rpc.c:40: warning: passing argument 3 of ‘pike_top_add_entry’ from incompatible pointer type pike_top.h:19: note: expected ‘unsigned int *’ but argument is of type ‘short unsigned int *’ pike_rpc.c:40: warning: passing argument 4 of ‘pike_top_add_entry’ from incompatible pointer type pike_top.h:19: note: expected ‘unsigned int *’ but argument is of type ‘short unsigned int *’ pike_rpc.c:43: warning: passing argument 3 of ‘pike_top_add_entry’ from incompatible pointer type pike_top.h:19: note: expected ‘unsigned int *’ but argument is of type ‘short unsigned int *’ pike_rpc.c:43: warning: passing argument 4 of ‘pike_top_add_entry’ from incompatible pointer type pike_top.h:19: note: expected ‘unsigned int *’ but argument is of type ‘short unsigned int *’ pike_rpc.c: In function ‘pike_top’: pike_rpc.c:141: warning: statement with no effect
-- juha
22 dec 2012 kl. 10:41 skrev Juha Heinanen jh@tutpro.com:
it would be nice to get rid of these:
I fully agree.
CC (cc) [M pike.so] pike_rpc.o pike_rpc.c: In function ‘traverse_subtree’: pike_rpc.c:40: warning: passing argument 3 of ‘pike_top_add_entry’ from incompatible pointer type pike_top.h:19: note: expected ‘unsigned int *’ but argument is of type ‘short unsigned int *’ pike_rpc.c:40: warning: passing argument 4 of ‘pike_top_add_entry’ from incompatible pointer type pike_top.h:19: note: expected ‘unsigned int *’ but argument is of type ‘short unsigned int *’ pike_rpc.c:43: warning: passing argument 3 of ‘pike_top_add_entry’ from incompatible pointer type pike_top.h:19: note: expected ‘unsigned int *’ but argument is of type ‘short unsigned int *’ pike_rpc.c:43: warning: passing argument 4 of ‘pike_top_add_entry’ from incompatible pointer type pike_top.h:19: note: expected ‘unsigned int *’ but argument is of type ‘short unsigned int *’ pike_rpc.c: In function ‘pike_top’: pike_rpc.c:141: warning: statement with no effect
I had no warnings. Strange.
Will fix. Thanks for the feedback, Juha!
/O