summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-04-21 12:01:49 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-04-23 14:39:21 +0100
commit0fc140abc3c848e72b1b2b959026355fdbd6a941 (patch)
tree0419af0e6481d9bad1124ea4f0dc8fbbcd9c27ef
parent1923a33a7277009b2898840d671fdc8f8d1b3922 (diff)
pdf: Suppress compiler warning.
-rw-r--r--src/cairo-pdf-operators.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cairo-pdf-operators.c b/src/cairo-pdf-operators.c
index e688b027..285214ea 100644
--- a/src/cairo-pdf-operators.c
+++ b/src/cairo-pdf-operators.c
@@ -500,14 +500,14 @@ _cairo_pdf_operators_clip (cairo_pdf_operators_t *pdf_operators,
}
switch (fill_rule) {
+ default:
+ ASSERT_NOT_REACHED;
case CAIRO_FILL_RULE_WINDING:
pdf_operator = "W";
break;
case CAIRO_FILL_RULE_EVEN_ODD:
pdf_operator = "W*";
break;
- default:
- ASSERT_NOT_REACHED;
}
_cairo_output_stream_printf (pdf_operators->stream,
@@ -834,14 +834,14 @@ _cairo_pdf_operators_fill (cairo_pdf_operators_t *pdf_operators,
return status;
switch (fill_rule) {
+ default:
+ ASSERT_NOT_REACHED;
case CAIRO_FILL_RULE_WINDING:
pdf_operator = "f";
break;
case CAIRO_FILL_RULE_EVEN_ODD:
pdf_operator = "f*";
break;
- default:
- ASSERT_NOT_REACHED;
}
_cairo_output_stream_printf (pdf_operators->stream,
@@ -862,14 +862,14 @@ _cairo_pdf_operators_fill_stroke (cairo_pdf_operators_t *pdf_operators,
const char *operator;
switch (fill_rule) {
+ default:
+ ASSERT_NOT_REACHED;
case CAIRO_FILL_RULE_WINDING:
operator = "B";
break;
case CAIRO_FILL_RULE_EVEN_ODD:
operator = "B*";
break;
- default:
- ASSERT_NOT_REACHED;
}
return _cairo_pdf_operators_emit_stroke (pdf_operators,