GNOME Bugzilla – Bug 703802
Valac 0.22 show warnings in gee-0.8.vapi
Last modified: 2013-07-14 21:26:48 UTC
Valac 0.22 show following warnings (introduced by 0bd22fbf (vala)): gee-0.8.vapi:531.44-531.70: warning: delegates with scope="async" must be owned public virtual Gee.Future<A> flatMap<A> (Gee.Future.FlatMapFunc<A,G> func); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ gee-0.8.vapi:531.44-531.70: warning: delegates with scope="async" must be owned public virtual Gee.Future<A> flatMap<A> (Gee.Future.FlatMapFunc<A,G> func); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ gee-0.8.vapi:536.35-536.60: warning: delegates with scope="async" must be owned public abstract void when_done (Gee.Future.WhenDoneFunc<G> func); ^^^^^^^^^^^^^^^^^^^^^^^^^^ gee-0.8.vapi:536.35-536.60: warning: delegates with scope="async" must be owned public abstract void when_done (Gee.Future.WhenDoneFunc<G> func); ^^^^^^^^^^^^^^^^^^^^^^^^^^
I talked about it yesterday on #vala. Adding owned to the declaration results in producing invalid C code so I know about it but ironically it is correct right now while fixing the warning would make libgee not compiling.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report. commit bd7598ae5653301235dfe0a990f5064cfb563cc2 Author: Maciej Piechotka <uzytkownik2@gmail.com> Date: Fri Jul 12 20:46:06 2013 +0200 Change the scope="async" callbacks to owned, fixes bug #703802