diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-08-22 02:00:29 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-08-22 02:28:28 -0400 |
commit | 2315f67a99049896456bbbde21838c0817954dee (patch) | |
tree | 1fd5b36c0ddd4f3ad93ba276d2dc95cbd32b17bb | |
parent | fe3175fbdc5ec26a5123a5aa9383088165c05bf4 (diff) | |
download | pango-2315f67a99049896456bbbde21838c0817954dee.tar.gz |
attributes: Silence compiler warnings
-rw-r--r-- | pango/pango-attributes.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c index 15814e38..28dc4105 100644 --- a/pango/pango-attributes.c +++ b/pango/pango-attributes.c @@ -1456,7 +1456,7 @@ pango_attr_text_transform_new (PangoTextTransform transform) PangoAttrInt * pango_attribute_as_int (PangoAttribute *attr) { - switch (attr->klass->type) + switch ((int)attr->klass->type) { case PANGO_ATTR_STYLE: case PANGO_ATTR_WEIGHT: @@ -1500,7 +1500,7 @@ pango_attribute_as_int (PangoAttribute *attr) PangoAttrFloat * pango_attribute_as_float (PangoAttribute *attr) { - switch (attr->klass->type) + switch ((int)attr->klass->type) { case PANGO_ATTR_SCALE: case PANGO_ATTR_LINE_HEIGHT: @@ -1525,7 +1525,7 @@ pango_attribute_as_float (PangoAttribute *attr) PangoAttrString * pango_attribute_as_string (PangoAttribute *attr) { - switch (attr->klass->type) + switch ((int)attr->klass->type) { case PANGO_ATTR_FAMILY: return (PangoAttrString *)attr; @@ -1551,7 +1551,7 @@ pango_attribute_as_string (PangoAttribute *attr) PangoAttrSize * pango_attribute_as_size (PangoAttribute *attr) { - switch (attr->klass->type) + switch ((int)attr->klass->type) { case PANGO_ATTR_SIZE: case PANGO_ATTR_ABSOLUTE_SIZE: @@ -1578,7 +1578,7 @@ pango_attribute_as_size (PangoAttribute *attr) PangoAttrColor * pango_attribute_as_color (PangoAttribute *attr) { - switch (attr->klass->type) + switch ((int)attr->klass->type) { case PANGO_ATTR_FOREGROUND: case PANGO_ATTR_BACKGROUND: @@ -1608,7 +1608,7 @@ pango_attribute_as_color (PangoAttribute *attr) PangoAttrFontDesc * pango_attribute_as_font_desc (PangoAttribute *attr) { - switch (attr->klass->type) + switch ((int)attr->klass->type) { case PANGO_ATTR_FONT_DESC: return (PangoAttrFontDesc *)attr; @@ -1634,7 +1634,7 @@ pango_attribute_as_font_desc (PangoAttribute *attr) PangoAttrFontFeatures * pango_attribute_as_font_features (PangoAttribute *attr) { - switch (attr->klass->type) + switch ((int)attr->klass->type) { case PANGO_ATTR_FONT_FEATURES: return (PangoAttrFontFeatures *)attr; @@ -1660,7 +1660,7 @@ pango_attribute_as_font_features (PangoAttribute *attr) PangoAttrLanguage * pango_attribute_as_language (PangoAttribute *attr) { - switch (attr->klass->type) + switch ((int)attr->klass->type) { case PANGO_ATTR_LANGUAGE: return (PangoAttrLanguage *)attr; @@ -1686,7 +1686,7 @@ pango_attribute_as_language (PangoAttribute *attr) PangoAttrShape * pango_attribute_as_shape (PangoAttribute *attr) { - switch (attr->klass->type) + switch ((int)attr->klass->type) { case PANGO_ATTR_SHAPE: return (PangoAttrShape *)attr; |