summaryrefslogtreecommitdiff
path: root/src/cairo-misc.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-misc.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-misc.c')
-rw-r--r--src/cairo-misc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cairo-misc.c b/src/cairo-misc.c
index a6d4ffae4..aaf849b97 100644
--- a/src/cairo-misc.c
+++ b/src/cairo-misc.c
@@ -123,9 +123,10 @@ cairo_status_to_string (cairo_status_t status)
return "invalid value for an input #cairo_font_weight_t";
case CAIRO_STATUS_INVALID_SIZE:
return "invalid value for the size of the input (surface, pattern, etc.)";
+ default:
+ case CAIRO_STATUS_LAST_STATUS:
+ return "<unknown error status>";
}
-
- return "<unknown error status>";
}