diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-01-07 21:05:41 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-01-07 21:07:02 -0500 |
commit | 88e0d1599cb0307fe93cf31b36f654303422b411 (patch) | |
tree | 88f83cda10175148406101cdf1bc207d61b404bc /tests/testiter.c | |
parent | ea9d405f1c5bd964ca52f2f07d49c0a49177e478 (diff) | |
download | pango-88e0d1599cb0307fe93cf31b36f654303422b411.tar.gz |
Avoid compiler warnings in testiter.c
Drop an unused variable, and don't call the deprecated
pango_cairo_font_map_create_context().
Diffstat (limited to 'tests/testiter.c')
-rw-r--r-- | tests/testiter.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/testiter.c b/tests/testiter.c index 65986d52..1870ce6e 100644 --- a/tests/testiter.c +++ b/tests/testiter.c @@ -165,12 +165,9 @@ iter_cluster_test (PangoLayout *layout) PangoLayoutIter *iter; int index; gboolean iter_next_ok; - const char *text; PangoLayoutLine *last_line = NULL; int expected_next_x = 0; - text = pango_layout_get_text (layout); - iter = pango_layout_get_iter (layout); iter_next_ok = TRUE; @@ -221,7 +218,7 @@ main (int argc, char *argv[]) g_setenv ("PANGO_RC_FILE", "./pangorc", TRUE); fontmap = pango_cairo_font_map_get_default (); - context = pango_cairo_font_map_create_context (PANGO_CAIRO_FONT_MAP (fontmap)); + context = pango_font_map_create_context (fontmap); layout = pango_layout_new (context); pango_layout_set_width (layout, LAYOUT_WIDTH); |