summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-06-19 02:37:19 +0300
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-06-19 02:45:39 +0300
commit6d8b353658da1ad973e3bda9e89799a7467d8182 (patch)
treeadd493c7d289970f9246d39022a1b7806ecdbeb6 /src
parent7651227d3dfe4ebf40e95a72106957a9ec51dd3e (diff)
[spans] Squash a compiler warning when creating error objects.
Handle the new CAIRO_STATUS_USER_FONT_NOT_IMPLEMENTED status code in the switch/case of the ..._create_in_error() functions for creating span renderers or scan converters.
Diffstat (limited to 'src')
-rw-r--r--src/cairo-spans.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-spans.c b/src/cairo-spans.c
index 625f83f1..cf8f7677 100644
--- a/src/cairo-spans.c
+++ b/src/cairo-spans.c
@@ -290,6 +290,7 @@ _cairo_scan_converter_create_in_error (cairo_status_t status)
case CAIRO_STATUS_INVALID_WEIGHT: RETURN_NIL;
case CAIRO_STATUS_NO_MEMORY: RETURN_NIL;
case CAIRO_STATUS_INVALID_SIZE: RETURN_NIL;
+ case CAIRO_STATUS_USER_FONT_NOT_IMPLEMENTED: RETURN_NIL;
default:
break;
}
@@ -395,6 +396,7 @@ _cairo_span_renderer_create_in_error (cairo_status_t status)
case CAIRO_STATUS_INVALID_WEIGHT: RETURN_NIL;
case CAIRO_STATUS_NO_MEMORY: RETURN_NIL;
case CAIRO_STATUS_INVALID_SIZE: RETURN_NIL;
+ case CAIRO_STATUS_USER_FONT_NOT_IMPLEMENTED: RETURN_NIL;
default:
break;
}