diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2008-12-26 02:20:59 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2008-12-26 02:20:59 +0000 |
commit | 069472e0b2bb810e335c0e28a37dcb71e6843030 (patch) | |
tree | b951fc3e6921d9fd675e3ac93ee7350c574bf6cc /pango/pango-markup.c | |
parent | cea6473bcf6456e531304fc23c473e33475ad05c (diff) | |
download | pango-069472e0b2bb810e335c0e28a37dcb71e6843030.tar.gz |
Fix warnings.
2008-12-25 Behdad Esfahbod <behdad@gnome.org>
* pango/break.c (pango_default_break):
* pango/fonts.c (find_field_any), (pango_font_class_init),
(pango_font_init), (pango_font_metrics_ref),
(pango_font_metrics_unref), (pango_font_family_class_init),
(pango_font_family_init), (pango_font_face_class_init),
(pango_font_face_init):
* pango/pango-attributes.c (pango_attr_list_ref),
(pango_attr_list_unref), (pango_attr_iterator_get_font):
* pango/pango-layout.c (pango_layout_set_height), (extents_free),
(no_shape_filter_func), (pango_layout_line_ref),
(pango_layout_line_unref), (pango_layout_get_item_properties):
* pango/pango-markup.c (end_element_handler), (text_handler),
(b_parse_func), (big_parse_func), (span_parse_func),
(i_parse_func), (markup_parse_func), (s_parse_func),
(sub_parse_func), (sup_parse_func), (small_parse_func),
(tt_parse_func), (u_parse_func):
* pango/pango-ot-info.c (get_glyph_class):
* pango/pango-renderer.c (get_item_properties),
(pango_renderer_default_prepare_run):
* pango/pango-utils.c (_pango_shape_shape):
* pango/pangocairo-fcfontmap.c
(pango_cairo_fc_font_map_get_font_type),
(pango_cairo_fc_font_map_context_substitute),
(pango_cairo_fc_font_map_context_key_get),
(pango_cairo_fc_font_map_context_key_copy),
(pango_cairo_fc_font_map_context_key_free),
(pango_cairo_fc_font_map_context_key_hash),
(pango_cairo_fc_font_map_context_key_equal):
* pango/pangocairo-fontmap.c
(pango_cairo_font_map_new_for_font_type),
(pango_cairo_font_map_set_default):
* pango/pangocairo-render.c (pango_cairo_renderer_init):
* pango/pangox-fontcache.c (free_cache_entry):
* pango/pangox-fontmap.c (close_display_cb),
(list_families_foreach), (pango_x_font_map_load_font),
(ignore_error):
* pango/pangox.c (average_width_foreach), (subfonts_foreach),
(pango_x_font_find_shaper), (pango_x_get_unknown_glyph),
(pango_x_get_item_properties), (pango_x_apply_ligatures),
(pango_x_font_get_unknown_glyph):
* pango/pangoxft-fontmap.c (pango_xft_font_map_init),
(close_display_cb):
* pango/querymodules.c (show_version):
Fix warnings.
svn path=/trunk/; revision=2765
Diffstat (limited to 'pango/pango-markup.c')
-rw-r--r-- | pango/pango-markup.c | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/pango/pango-markup.c b/pango/pango-markup.c index f0e78941..f5c96498 100644 --- a/pango/pango-markup.c +++ b/pango/pango-markup.c @@ -405,20 +405,20 @@ start_element_handler (GMarkupParseContext *context, } static void -end_element_handler (GMarkupParseContext *context, - const gchar *element_name, +end_element_handler (GMarkupParseContext *context G_GNUC_UNUSED, + const gchar *element_name G_GNUC_UNUSED, gpointer user_data, - GError **error) + GError **error G_GNUC_UNUSED) { markup_data_close_tag (user_data); } static void -text_handler (GMarkupParseContext *context, +text_handler (GMarkupParseContext *context G_GNUC_UNUSED, const gchar *text, gsize text_len, gpointer user_data, - GError **error) + GError **error G_GNUC_UNUSED) { MarkupData *md = user_data; @@ -746,10 +746,10 @@ add_attribute (OpenTag *ot, } }G_STMT_END static gboolean -b_parse_func (MarkupData *md, +b_parse_func (MarkupData *md G_GNUC_UNUSED, OpenTag *tag, const gchar **names, - const gchar **values, + const gchar **values G_GNUC_UNUSED, GMarkupParseContext *context, GError **error) { @@ -759,10 +759,10 @@ b_parse_func (MarkupData *md, } static gboolean -big_parse_func (MarkupData *md, +big_parse_func (MarkupData *md G_GNUC_UNUSED, OpenTag *tag, const gchar **names, - const gchar **values, + const gchar **values G_GNUC_UNUSED, GMarkupParseContext *context, GError **error) { @@ -950,7 +950,7 @@ span_parse_enum (const char *attr_name, } static gboolean -span_parse_func (MarkupData *md, +span_parse_func (MarkupData *md G_GNUC_UNUSED, OpenTag *tag, const gchar **names, const gchar **values, @@ -1244,7 +1244,7 @@ span_parse_func (MarkupData *md, { PangoUnderline ul = PANGO_UNDERLINE_NONE; - if (!span_parse_enum ("underline", underline, PANGO_TYPE_UNDERLINE, &ul, line_number, error)) + if (!span_parse_enum ("underline", underline, PANGO_TYPE_UNDERLINE, (int *) &ul, line_number, error)) goto error; add_attribute (tag, pango_attr_underline_new (ul)); @@ -1264,7 +1264,7 @@ span_parse_func (MarkupData *md, { PangoGravity gr = PANGO_GRAVITY_SOUTH; - if (!span_parse_enum ("gravity", gravity, PANGO_TYPE_GRAVITY, &gr, line_number, error)) + if (!span_parse_enum ("gravity", gravity, PANGO_TYPE_GRAVITY, (int *) &gr, line_number, error)) goto error; add_attribute (tag, pango_attr_gravity_new (gr)); @@ -1274,7 +1274,7 @@ span_parse_func (MarkupData *md, { PangoGravityHint hint = PANGO_GRAVITY_HINT_NATURAL; - if (!span_parse_enum ("gravity_hint", gravity_hint, PANGO_TYPE_GRAVITY_HINT, &hint, line_number, error)) + if (!span_parse_enum ("gravity_hint", gravity_hint, PANGO_TYPE_GRAVITY_HINT, (int *) &hint, line_number, error)) goto error; add_attribute (tag, pango_attr_gravity_hint_new (hint)); @@ -1344,10 +1344,10 @@ span_parse_func (MarkupData *md, } static gboolean -i_parse_func (MarkupData *md, +i_parse_func (MarkupData *md G_GNUC_UNUSED, OpenTag *tag, const gchar **names, - const gchar **values, + const gchar **values G_GNUC_UNUSED, GMarkupParseContext *context, GError **error) { @@ -1358,12 +1358,12 @@ i_parse_func (MarkupData *md, } static gboolean -markup_parse_func (MarkupData *md, - OpenTag *tag, - const gchar **names, - const gchar **values, - GMarkupParseContext *context, - GError **error) +markup_parse_func (MarkupData *md G_GNUC_UNUSED, + OpenTag *tag G_GNUC_UNUSED, + const gchar **names G_GNUC_UNUSED, + const gchar **values G_GNUC_UNUSED, + GMarkupParseContext *context G_GNUC_UNUSED, + GError **error G_GNUC_UNUSED) { /* We don't do anything with this tag at the moment. */ @@ -1371,10 +1371,10 @@ markup_parse_func (MarkupData *md, } static gboolean -s_parse_func (MarkupData *md, +s_parse_func (MarkupData *md G_GNUC_UNUSED, OpenTag *tag, const gchar **names, - const gchar **values, + const gchar **values G_GNUC_UNUSED, GMarkupParseContext *context, GError **error) { @@ -1387,10 +1387,10 @@ s_parse_func (MarkupData *md, #define SUPERSUB_RISE 5000 static gboolean -sub_parse_func (MarkupData *md, +sub_parse_func (MarkupData *md G_GNUC_UNUSED, OpenTag *tag, const gchar **names, - const gchar **values, + const gchar **values G_GNUC_UNUSED, GMarkupParseContext *context, GError **error) { @@ -1409,10 +1409,10 @@ sub_parse_func (MarkupData *md, } static gboolean -sup_parse_func (MarkupData *md, +sup_parse_func (MarkupData *md G_GNUC_UNUSED, OpenTag *tag, const gchar **names, - const gchar **values, + const gchar **values G_GNUC_UNUSED, GMarkupParseContext *context, GError **error) { @@ -1431,10 +1431,10 @@ sup_parse_func (MarkupData *md, } static gboolean -small_parse_func (MarkupData *md, +small_parse_func (MarkupData *md G_GNUC_UNUSED, OpenTag *tag, const gchar **names, - const gchar **values, + const gchar **values G_GNUC_UNUSED, GMarkupParseContext *context, GError **error) { @@ -1451,10 +1451,10 @@ small_parse_func (MarkupData *md, } static gboolean -tt_parse_func (MarkupData *md, +tt_parse_func (MarkupData *md G_GNUC_UNUSED, OpenTag *tag, const gchar **names, - const gchar **values, + const gchar **values G_GNUC_UNUSED, GMarkupParseContext *context, GError **error) { @@ -1466,10 +1466,10 @@ tt_parse_func (MarkupData *md, } static gboolean -u_parse_func (MarkupData *md, +u_parse_func (MarkupData *md G_GNUC_UNUSED, OpenTag *tag, const gchar **names, - const gchar **values, + const gchar **values G_GNUC_UNUSED, GMarkupParseContext *context, GError **error) { |