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 311626 - c99isms error in pangocairo-fontmap.c
c99isms error in pangocairo-fontmap.c
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: general
1.9.x
Other All
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2005-07-26 17:26 UTC by Kazuki Iwamoto
Modified: 2005-07-26 18:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kazuki Iwamoto 2005-07-26 17:26:50 UTC
Please describe the problem:
There are declarations after function calls in following.
pango_cairo_context_set_font_options
pango_cairo_context_get_font_options

Steps to reproduce:
1. compile by old compiler

Actual results:
following messages are displayed.
pangocairo-fontmap.c(355) : error C2143: syntax error : missing ';' before 'type'
pangocairo-fontmap.c(357) : error C2065: 'info' : undeclared identifier
pangocairo-fontmap.c(357) : error C2223: left of '->set_options' must point to
struct/union
pangocairo-fontmap.c(358) : error C2223: left of '->set_options' must point to
struct/union
pangocairo-fontmap.c(358) : error C2198: 'cairo_font_options_destroy' : too few
arguments for call through pointer-to-function
pangocairo-fontmap.c(361) : error C2223: left of '->set_options' must point to
struct/union
pangocairo-fontmap.c(363) : error C2223: left of '->set_options' must point to
struct/union
pangocairo-fontmap.c(365) : error C2223: left of '->merged_options' must point
to struct/union
pangocairo-fontmap.c(367) : error C2223: left of '->merged_options' must point
to struct/union
pangocairo-fontmap.c(367) : error C2198: 'cairo_font_options_destroy' : too few
arguments for call through pointer-to-function
pangocairo-fontmap.c(368) : error C2223: left of '->merged_options' must point
to struct/union
pangocairo-fontmap.c(384) : error C2059: syntax error : 'const'

Expected results:
There are declarations before function calls in following.

Does this happen every time?
every time

Other information:
Comment 1 Owen Taylor 2005-07-26 18:13:28 UTC
2005-07-26  Owen Taylor  <otaylor@redhat.com>

        * pango/pangocairo-fontmap.c (pango_cairo_context_get_font_options):
        Fix mixed code and declarations (#311626, Kazuki IWAMOTO)