summaryrefslogtreecommitdiff
path: root/pango/pango-markup.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2008-12-26 02:31:47 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2008-12-26 02:31:47 +0000
commit1c53de263257039f23193fb389d9808fb212812a (patch)
treecfcf04a299c3472a5089a2e87ed6569510098a43 /pango/pango-markup.c
parentaa841230aae629fffc9b94b3b1b1a4fa794c9d12 (diff)
downloadpango-1c53de263257039f23193fb389d9808fb212812a.tar.gz
Bug 469049 – Fix all compiler warnings
2008-12-25 Behdad Esfahbod <behdad@gnome.org> Bug 469049 – Fix all compiler warnings * pango-view/viewer-pangocairo.c (render_callback): * pango/fonts.c (append_field), (pango_font_description_to_string): * pango/opentype/harfbuzz-dump.c: * pango/pango-bidi-type.c (pango_log2vis_get_embedding_levels): * pango/pango-coverage.c (pango_coverage_set): * pango/pango-markup.c (span_parse_func): * pango/pango-renderer.c (pango_renderer_default_draw_error_underline): * pango/pango-utils.c (pango_scan_string): * pango/pangocairo-render.c (pango_cairo_renderer_draw_trapezoid), (draw_error_underline), (pango_cairo_renderer_class_init): Fix all the remaining warnings. svn path=/trunk/; revision=2767
Diffstat (limited to 'pango/pango-markup.c')
-rw-r--r--pango/pango-markup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/pango-markup.c b/pango/pango-markup.c
index f5c96498..b1a8c9c1 100644
--- a/pango/pango-markup.c
+++ b/pango/pango-markup.c
@@ -1244,7 +1244,7 @@ span_parse_func (MarkupData *md G_GNUC_UNUSED,
{
PangoUnderline ul = PANGO_UNDERLINE_NONE;
- if (!span_parse_enum ("underline", underline, PANGO_TYPE_UNDERLINE, (int *) &ul, line_number, error))
+ if (!span_parse_enum ("underline", underline, PANGO_TYPE_UNDERLINE, (int*)(void*)&ul, line_number, error))
goto error;
add_attribute (tag, pango_attr_underline_new (ul));
@@ -1264,7 +1264,7 @@ span_parse_func (MarkupData *md G_GNUC_UNUSED,
{
PangoGravity gr = PANGO_GRAVITY_SOUTH;
- if (!span_parse_enum ("gravity", gravity, PANGO_TYPE_GRAVITY, (int *) &gr, line_number, error))
+ if (!span_parse_enum ("gravity", gravity, PANGO_TYPE_GRAVITY, (int*)(void*)&gr, line_number, error))
goto error;
add_attribute (tag, pango_attr_gravity_new (gr));
@@ -1274,7 +1274,7 @@ span_parse_func (MarkupData *md G_GNUC_UNUSED,
{
PangoGravityHint hint = PANGO_GRAVITY_HINT_NATURAL;
- if (!span_parse_enum ("gravity_hint", gravity_hint, PANGO_TYPE_GRAVITY_HINT, (int *) &hint, line_number, error))
+ if (!span_parse_enum ("gravity_hint", gravity_hint, PANGO_TYPE_GRAVITY_HINT, (int*)(void*)&hint, line_number, error))
goto error;
add_attribute (tag, pango_attr_gravity_hint_new (hint));