Re: [Vala] Snoop warnings
- From: Abderrahim Kitouni <a kitouni gmail com>
- To: James Campos <james r campos gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Snoop warnings
- Date: Sun, 8 Nov 2009 18:17:16 +0100
Hi,
2009/11/8 James Campos <james r campos gmail com>:
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]