mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 06:28:01 +02:00
fix compiler warnings
This commit is contained in:
parent
3c33d97041
commit
55f8c6d9f4
4 changed files with 6 additions and 4 deletions
|
|
@ -757,7 +757,7 @@ _cairo_pdf_interchange_write_document_dests (cairo_pdf_surface_t *surface)
|
|||
cairo_pdf_named_dest_t *dest = ic->sorted_dests[i];
|
||||
cairo_pdf_resource_t page_res;
|
||||
double x = 0;
|
||||
double y = y;
|
||||
double y = 0;
|
||||
|
||||
if (dest->extents.valid) {
|
||||
x = dest->extents.extents.x;
|
||||
|
|
@ -959,7 +959,7 @@ _cairo_pdf_interchange_tag_begin (cairo_pdf_surface_t *surface,
|
|||
const char *name,
|
||||
const char *attributes)
|
||||
{
|
||||
cairo_int_status_t status;
|
||||
cairo_int_status_t status = CAIRO_STATUS_SUCCESS;
|
||||
cairo_tag_type_t tag_type;
|
||||
cairo_pdf_interchange_t *ic = &surface->interchange;
|
||||
void *ptr;
|
||||
|
|
@ -1061,7 +1061,7 @@ cairo_int_status_t
|
|||
_cairo_pdf_interchange_tag_end (cairo_pdf_surface_t *surface,
|
||||
const char *name)
|
||||
{
|
||||
cairo_int_status_t status;
|
||||
cairo_int_status_t status = CAIRO_STATUS_SUCCESS;
|
||||
cairo_pdf_interchange_t *ic = &surface->interchange;
|
||||
cairo_tag_type_t tag_type;
|
||||
cairo_tag_stack_elem_t *elem;
|
||||
|
|
|
|||
|
|
@ -314,7 +314,7 @@ parse_attributes (const char *attributes, attribute_spec_t *attrib_def, cairo_li
|
|||
{
|
||||
attribute_spec_t *def;
|
||||
attribute_t *attrib;
|
||||
char *name;
|
||||
char *name = NULL;
|
||||
cairo_int_status_t status;
|
||||
const char *p = attributes;
|
||||
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@ layout_paragraph (cairo_t *cr)
|
|||
text = strdup (ipsum_lorem);
|
||||
begin = text;
|
||||
end = text;
|
||||
prev_end = end;
|
||||
while (*begin) {
|
||||
end = strchr(end, ' ');
|
||||
if (!end) {
|
||||
|
|
|
|||
|
|
@ -1585,6 +1585,7 @@ _status_to_string (cairo_status_t status)
|
|||
f(PNG_ERROR);
|
||||
f(FREETYPE_ERROR);
|
||||
f(WIN32_GDI_ERROR);
|
||||
f(TAG_ERROR);
|
||||
case CAIRO_STATUS_LAST_STATUS:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue