GNOME Bugzilla – Bug 311626
c99isms error in pangocairo-fontmap.c
Last modified: 2005-07-26 18:13:28 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:
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)