fix compiler warnings

This commit is contained in:
Adrian Johnson 2016-10-04 11:55:28 +10:30
parent 3c33d97041
commit 55f8c6d9f4
4 changed files with 6 additions and 4 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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) {

View file

@ -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;
}