summaryrefslogtreecommitdiff
path: root/src/cairo-spans.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-03-28 19:26:03 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2009-03-29 08:31:15 +0100
commitf31c6548f818e1d4e257d94d623705284bcc4274 (patch)
tree40339f94b594c8812b86b8cc22689142c8eb1a31 /src/cairo-spans.c
parent62d84847c3b857b8fd5aeea3f4b5c0f2f4c91625 (diff)
downloadcairo-f31c6548f818e1d4e257d94d623705284bcc4274.tar.gz
Silence compiler warnings for CAIRO_STATUS_LAST_STATUS
Add ASSERT_NOT_REACHED (or similar) cases to the error handling switches to silence the compiler.
Diffstat (limited to 'src/cairo-spans.c')
-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 b6ac2c564..625f83f12 100644
--- a/src/cairo-spans.c
+++ b/src/cairo-spans.c
@@ -255,6 +255,7 @@ _cairo_scan_converter_create_in_error (cairo_status_t status)
}
switch (status) {
case CAIRO_STATUS_SUCCESS:
+ case CAIRO_STATUS_LAST_STATUS:
ASSERT_NOT_REACHED;
break;
case CAIRO_STATUS_INVALID_RESTORE: RETURN_NIL;
@@ -359,6 +360,7 @@ _cairo_span_renderer_create_in_error (cairo_status_t status)
}
switch (status) {
case CAIRO_STATUS_SUCCESS:
+ case CAIRO_STATUS_LAST_STATUS:
ASSERT_NOT_REACHED;
break;
case CAIRO_STATUS_INVALID_RESTORE: RETURN_NIL;