[cairo-scaled-font] Suppress compiler warning about unused variables.

Use _cairo_error_throw() for the cases where we cannot propagate the
status return.
This commit is contained in:
Chris Wilson 2008-06-29 13:16:10 +01:00
parent 5b7903d5a7
commit c394b72ee9

View file

@ -1180,13 +1180,13 @@ cairo_scaled_font_glyph_extents (cairo_scaled_font_t *scaled_font,
return;
if (num_glyphs < 0) {
cairo_status_t status = _cairo_error (CAIRO_STATUS_NEGATIVE_COUNT);
_cairo_error_throw (CAIRO_STATUS_NEGATIVE_COUNT);
/* XXX Can't propagate error */
return;
}
if (glyphs == NULL) {
cairo_status_t status = _cairo_error (CAIRO_STATUS_NULL_POINTER);
_cairo_error_throw (CAIRO_STATUS_NULL_POINTER);
/* XXX Can't propagate error */
return;
}