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 326847 - declaration of pango_is_zero_width()
declaration of pango_is_zero_width()
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: general
1.11.x
Other Linux
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2006-01-13 14:13 UTC by Matthias Clasen
Modified: 2006-01-14 06:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthias Clasen 2006-01-13 14:13:20 UTC
Behdad, did you mean

const gboolean pango_is_zero_width (...)

or

gboolean pango_is_zero_width (...) __attribute__(__const__)

?

In the former case, you should use G_CONST_RETURN, in the latter case,
put the G_GNUC_CONST after the declaration, since older gcc seem to 
choke on whats currently there. I could have sworn I saw this problem in 
bugmail this morning, but I can't find the bug anywhere...
Comment 1 Behdad Esfahbod 2006-01-14 04:45:30 UTC
I meant the latter.  Fixing...
Comment 2 Behdad Esfahbod 2006-01-14 06:38:03 UTC
2006-01-14  Behdad Esfahbod  <behdad@gnome.org>

        * pango/pango-utils.h (pango_is_zero_width): Move G_GNUC_CONST to
        after declaration, to be compatible with gcc 2.95. (bug #326847)