After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 703802 - Valac 0.22 show warnings in gee-0.8.vapi
Valac 0.22 show warnings in gee-0.8.vapi
Status: RESOLVED FIXED
Product: libgee
Classification: Platform
Component: general
0.11.x
Other Linux
: Normal major
: ---
Assigned To: libgee-maint
libgee-maint
Depends on: 703804
Blocks:
 
 
Reported: 2013-07-08 16:44 UTC by Dominique Lasserre
Modified: 2013-07-14 21:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dominique Lasserre 2013-07-08 16:44:38 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);
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^
Comment 1 Maciej (Matthew) Piechotka 2013-07-08 17:04:38 UTC
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.
Comment 2 Maciej (Matthew) Piechotka 2013-07-14 21:26:48 UTC
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