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 772661 - Generated header file triggers -Wredundant-decls
Generated header file triggers -Wredundant-decls
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Code Generator
0.34.x
Other Linux
: High major
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks: 688447
 
 
Reported: 2016-10-09 18:48 UTC by Michael Catanzaro
Modified: 2016-11-11 23:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Catanzaro 2016-10-09 18:48:10 UTC
gee.h generated by valac 0.34.0.42-30929 contains the following declarations on consecutive lines:

GeeHazardPointer* gee_hazard_pointer_new (gconstpointer* ptr);
GeeHazardPointer* gee_hazard_pointer_new (gconstpointer* ptr);

This triggers -Wredundant-decls warnings from GCC.
Comment 1 Rico Tzschichholz 2016-11-11 23:05:52 UTC
commit 3a008d0837f7cbe2f162787f0ccba7290b39cb48
Author: Rico Tzschichholz <ricotz@ubuntu.com>
Date:   Fri Nov 11 23:39:21 2016 +0100

    codegen: Don't write declaration of CreationMethod for compact-classes twice