From 6cc857aa6648b17e70b1b2b13a4e8b7a74a4a240 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 29 Aug 2016 08:50:38 -0400 Subject: Avoid deprecation warnings Now that we're using new-style deprecations, we have to fight a little harder to get rid of them inside pango. --- pango/pango-context.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pango/pango-context.c') diff --git a/pango/pango-context.c b/pango/pango-context.c index 0344e334..f91d0fe6 100644 --- a/pango/pango-context.c +++ b/pango/pango-context.c @@ -1433,9 +1433,11 @@ itemize_state_process_run (ItemizeState *state) if (!g_object_get_data (G_OBJECT (fontmap), script_name)) { +G_GNUC_BEGIN_IGNORE_DEPRECATIONS g_warning ("failed to choose a font, expect ugly output. engine-type='%s', script='%s'", pango_font_map_get_shape_engine_type (fontmap), script_name); +G_GNUC_END_IGNORE_DEPRECATIONS g_object_set_data_full (G_OBJECT (fontmap), script_name, GINT_TO_POINTER (1), NULL); -- cgit v1.2.1