Hey Nicolas, Any chance you'd compile with valac --save-temps <your files etc here>? And then maybe post line 113 from your test.c file so we can see what's really going on there?
Cheers, -Harry On Thu, Jul 8, 2010 at 12:14 AM, Nicolas HENRY <ice...@gmail.com> wrote: > Hello, > > I don't understand why this code produce a warning (vala 0.9.2) : > > public delegate void myDelegateFunc(); > > struct MyStruct { > public myDelegateFunc my_struct_func; > } > > void main(){ > string a = "test"; > var t = MyStruct(); > t.my_struct_func = () => { > print(a); > }; > t.my_struct_func(); > } > > .../test.vala.c: In function ‘_vala_main’: > .../test.vala.c:113: warning: assignment from incompatible pointer type > > Thanks. > > > _______________________________________________ > vala-list mailing list > vala-list@gnome.org > http://mail.gnome.org/mailman/listinfo/vala-list >
_______________________________________________ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list