diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-08-22 02:01:33 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-08-22 02:36:48 -0400 |
commit | c47c61012687f9e24826c17ffec8eafbe0a2e68c (patch) | |
tree | 3d76a550a6d3c9bfed4d61e59f727aa59095cc1b /tests/test-shape.c | |
parent | 9e8e4c7cd291bca8a28a18611cc0111a123291a6 (diff) | |
download | pango-c47c61012687f9e24826c17ffec8eafbe0a2e68c.tar.gz |
tests: Silence compiler warnings
Diffstat (limited to 'tests/test-shape.c')
-rw-r--r-- | tests/test-shape.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test-shape.c b/tests/test-shape.c index a04291e4..152acd26 100644 --- a/tests/test-shape.c +++ b/tests/test-shape.c @@ -57,7 +57,7 @@ static gboolean affects_itemization (PangoAttribute *attr, gpointer data) { - switch (attr->klass->type) + switch ((int)attr->klass->type) { /* These affect font selection */ case PANGO_ATTR_LANGUAGE: @@ -89,11 +89,12 @@ static gboolean affects_break_or_shape (PangoAttribute *attr, gpointer data) { - switch (attr->klass->type) + switch ((int)attr->klass->type) { /* Affects breaks */ case PANGO_ATTR_ALLOW_BREAKS: /* Affects shaping */ + case PANGO_ATTR_INSERT_HYPHENS: case PANGO_ATTR_FONT_FEATURES: case PANGO_ATTR_SHOW: return TRUE; |