Skip to content

Commit 65e864b

Browse files
committed
mute pango warning about depreciation of pango_coverage_unref for pango>=1.50.4
1 parent dcb2ef9 commit 65e864b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/training/pango/pango_font_info.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ bool PangoFontInfo::CoversUTF8Text(const char *utf8_text, int byte_length) const
230230
int len = it.get_utf8(tmp);
231231
tmp[len] = '\0';
232232
tlog(2, "'%s' (U+%x) not covered by font\n", tmp, *it);
233-
#if PANGO_VERSION_CHECK(1, 52, 0)
233+
#if PANGO_VERSION_CHECK(1, 50, 4)
234234
g_object_unref(coverage);
235235
#else
236236
pango_coverage_unref(coverage);
@@ -239,7 +239,7 @@ bool PangoFontInfo::CoversUTF8Text(const char *utf8_text, int byte_length) const
239239
return false;
240240
}
241241
}
242-
#if PANGO_VERSION_CHECK(1, 52, 0)
242+
#if PANGO_VERSION_CHECK(1, 50, 4)
243243
g_object_unref(coverage);
244244
#else
245245
pango_coverage_unref(coverage);
@@ -311,7 +311,7 @@ int PangoFontInfo::DropUncoveredChars(std::string *utf8_text) const {
311311
my_strnmove(out, utf8_char, utf8_len);
312312
out += utf8_len;
313313
}
314-
#if PANGO_VERSION_CHECK(1, 52, 0)
314+
#if PANGO_VERSION_CHECK(1, 50, 4)
315315
g_object_unref(coverage);
316316
#else
317317
pango_coverage_unref(coverage);
@@ -615,7 +615,7 @@ int FontUtils::FontScore(const std::unordered_map<char32, int64_t> &ch_map,
615615
ch_flags->push_back(covered);
616616
}
617617
}
618-
#if PANGO_VERSION_CHECK(1, 52, 0)
618+
#if PANGO_VERSION_CHECK(1, 50, 4)
619619
g_object_unref(coverage);
620620
#else
621621
pango_coverage_unref(coverage);

0 commit comments

Comments
 (0)