Hi, 2009/11/8 James Campos <[email protected]>: > Hi, > > I'm getting warnings when I use the key_snooper_install function. Am I > doing something wrong, or is this a known issue? Using Vala 0.7.8: [...] > > /home/james/code/vala/scratch.vala.c: In function > ‘_foo_snoop_callback_gtk_key_snoop_func’: > /home/james/code/vala/scratch.vala.c:51: warning: passing argument 1 > of ‘foo_snoop_callback’ from incompatible pointer type > /home/james/code/vala/scratch.vala.c:41: note: expected ‘struct Foo *’ > but argument is of type ‘struct GtkWidget *’
This is a C compiler warning, Vala tries to avoid those but it's not guarenteed. Generally, you can ignore these as valac generates relatively good code. I think this one isn't very difficult to fix, though. HTH, Abderrahim _______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
