mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 14:38:13 +02:00
[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:
parent
5b7903d5a7
commit
c394b72ee9
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue