diff options
author | Andrea Canciani <ranma42@gmail.com> | 2010-11-26 13:46:31 +0100 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2010-11-26 13:49:46 +0100 |
commit | 063a3894d7ed98ba36f416a285acc88c50d3bb34 (patch) | |
tree | 9a29c222876979218bc831172fee7e9c198e988a /src/cairo-pdf-surface-private.h | |
parent | 1ab64965786208b94ed40aa5f7f9be59d58fbf96 (diff) | |
download | cairo-063a3894d7ed98ba36f416a285acc88c50d3bb34.tar.gz |
pdf: Silence compiler warnings
The compiler complains about a const pointer being free'd and memcpy'd
to:
cairo-pdf-surface.c: In function ‘_cairo_pdf_surface_add_source_surface’:
cairo-pdf-surface.c:1208: warning: passing argument 1 of ‘__builtin___memcpy_chk’ discards qualifiers from pointer target type
cairo-pdf-surface.c:1208: warning: passing argument 1 of ‘__inline_memcpy_chk’ discards qualifiers from pointer target type
cairo-pdf-surface.c: In function ‘_cairo_pdf_source_surface_entry_pluck’:
cairo-pdf-surface.c:1666: warning: passing argument 1 of ‘free’ discards qualifiers from pointer target type
Diffstat (limited to 'src/cairo-pdf-surface-private.h')
-rw-r--r-- | src/cairo-pdf-surface-private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-pdf-surface-private.h b/src/cairo-pdf-surface-private.h index 5c70ef973..11e026bb9 100644 --- a/src/cairo-pdf-surface-private.h +++ b/src/cairo-pdf-surface-private.h @@ -67,7 +67,7 @@ typedef struct _cairo_pdf_group_resources { typedef struct _cairo_pdf_source_surface_entry { cairo_hash_entry_t base; unsigned int id; - const unsigned char *unique_id; + unsigned char *unique_id; unsigned long unique_id_length; cairo_bool_t interpolate; cairo_pdf_resource_t surface_res; |