mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 04:38:04 +02:00
[spans] Squash a compiler warning when creating error objects.
Handle the new CAIRO_STATUS_USER_FONT_NOT_IMPLEMENTED status code in the switch/case of the ..._create_in_error() functions for creating span renderers or scan converters.
This commit is contained in:
parent
7651227d3d
commit
6d8b353658
1 changed files with 2 additions and 0 deletions
|
|
@ -290,6 +290,7 @@ _cairo_scan_converter_create_in_error (cairo_status_t status)
|
|||
case CAIRO_STATUS_INVALID_WEIGHT: RETURN_NIL;
|
||||
case CAIRO_STATUS_NO_MEMORY: RETURN_NIL;
|
||||
case CAIRO_STATUS_INVALID_SIZE: RETURN_NIL;
|
||||
case CAIRO_STATUS_USER_FONT_NOT_IMPLEMENTED: RETURN_NIL;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
@ -395,6 +396,7 @@ _cairo_span_renderer_create_in_error (cairo_status_t status)
|
|||
case CAIRO_STATUS_INVALID_WEIGHT: RETURN_NIL;
|
||||
case CAIRO_STATUS_NO_MEMORY: RETURN_NIL;
|
||||
case CAIRO_STATUS_INVALID_SIZE: RETURN_NIL;
|
||||
case CAIRO_STATUS_USER_FONT_NOT_IMPLEMENTED: RETURN_NIL;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue