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 435848 - 'self' unused warnings with -Wall
'self' unused warnings with -Wall
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Code Generator
0.0.x
Other All
: Normal trivial
: ---
Assigned To: Jürg Billeter
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2007-05-04 14:50 UTC by Michael Lawrence
Modified: 2007-05-09 12:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Lawrence 2007-05-04 14:50:41 UTC
Please describe the problem:
When compiling generated code with -Wall, gcc outputs warnings saying that 'self' is unused in _get_property and _set_property when the class has no properties and _dispose when the class has no fields.

Steps to reproduce:
1. Create a class without properties or fields
2. Compile the C source with -Wall
3. 


Actual results:
Warning is emitted.

Expected results:
No warnings (self should be omitted from generated code)

Does this happen every time?
Yes

Other information:
Comment 1 Jürg Billeter 2007-05-09 12:14:40 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.