diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-09-01 12:08:14 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-09-17 19:20:36 -0400 |
commit | 7dd4a84b99af85de61a3d216bf50bca0d11683d3 (patch) | |
tree | 916abede117eed431e8af498ecd2e613f4fbf48e /pango/pangofc-font.c | |
parent | 54b593ec3e7829583ce2fec3fe22dff512db07fb (diff) | |
download | pango-7dd4a84b99af85de61a3d216bf50bca0d11683d3.tar.gz |
Small const correctness fix
clang complains that initializing 'FcPattern *' (aka 'struct _FcPattern *')
with an expression of type 'const FcPattern *' (aka 'const struct _FcPattern *')
discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
FcPattern *pattern = pango_fc_font_key_get_pattern (key);
Diffstat (limited to 'pango/pangofc-font.c')
-rw-r--r-- | pango/pangofc-font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c index 4b6a34f7..7456cd9e 100644 --- a/pango/pangofc-font.c +++ b/pango/pangofc-font.c @@ -993,7 +993,7 @@ pango_fc_font_create_hb_font (PangoFont *font) if (key) { - FcPattern *pattern = pango_fc_font_key_get_pattern (key); + const FcPattern *pattern = pango_fc_font_key_get_pattern (key); const char *variations; int index; unsigned int n_axes; |