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 545401 - missing support for void reference functions
missing support for void reference functions
Status: RESOLVED DUPLICATE of bug 566078
Product: vala
Classification: Core
Component: general
0.3.x
Other All
: Normal normal
: ---
Assigned To: Jürg Billeter
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2008-07-29 22:47 UTC by Christian Hergert
Modified: 2008-12-30 21:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Hergert 2008-07-29 22:47:34 UTC
Please describe the problem:
Some custom reference counting systems do not return the object instance via their ref function. There should be a way to denote this so that the generated code does not force assignment of the void.

Steps to reproduce:
GNet bindings for InetAddr. gnet_inetaddr_ref returns void.

Actual results:
subscription-service.c:343: error: void value not ignored as it ought to be

Expected results:
no assignment from the void func. perhaps we can add another attribute to the CCode block that denotes the function is void.

ref_function_void = true

Does this happen every time?
yse

Other information:
Comment 1 Philipp Schlesinger 2008-08-11 23:09:10 UTC
At least

gconf_entry_ref
gconf_change_set_ref
gconf_engine_ref

return void as well.
Comment 2 Jürg Billeter 2008-12-30 21:07:29 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 566078 ***