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 638349 - parameter name of g_variant_new_* may conflict with applications defined type
parameter name of g_variant_new_* may conflict with applications defined type
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gvariant
2.26.x
Other All
: Normal trivial
: ---
Assigned To: Allison Karlitskaya (desrt)
gtkdev
Depends on:
Blocks:
 
 
Reported: 2010-12-30 13:39 UTC by renatofq
Modified: 2011-01-06 00:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description renatofq 2010-12-30 13:39:25 UTC
the functions g_variant_new_* use parameters names that, sadly, are common type names in some applications.


I work on an application that defines the type byte, and in it conflicts with the  "GVariant * g_variant_new_byte(guchar byte);" declaration
Comment 1 Matthias Clasen 2011-01-05 22:00:14 UTC
MY proposal is to rename all GVariant* parameters to 'variant' and all others to 'value'.