well, shut up some warnings

This commit is contained in:
Jérémy Zurcher 2013-05-15 16:12:03 +02:00
parent 3125a83d98
commit 0aec1efe93
2 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@
SpectreDocument *psdoc; SpectreDocument *psdoc;
unsigned int page_count; int page_count;
SpectrePage *page; SpectrePage *page;
@ -82,7 +82,7 @@ _spectre_init(const char *file, int page_nbr, int size_w, int size_h)
if (status != SPECTRE_STATUS_SUCCESS) if (status != SPECTRE_STATUS_SUCCESS)
{ {
D("[eps] %s\n", spectre_status_to_string (status)); D("[eps] %s\n", spectre_status_to_string (status));
goto free_psdoc; goto free_page;
} }
spectre_page_get_size(page, &ww, &hh); spectre_page_get_size(page, &ww, &hh);
@ -163,7 +163,7 @@ _pixcopy(DATA32 *dst, unsigned char *src, int size)
} }
static void static void
_spectre_load_image(int size_w, int size_h) _spectre_load_image(int size_w EINA_UNUSED, int size_h EINA_UNUSED)
{ {
SpectreRenderContext *rc; SpectreRenderContext *rc;
unsigned char *psdata; unsigned char *psdata;

View File

@ -942,7 +942,7 @@ xcf_load_channel(void)
FREE(name); FREE(name);
/* create a new channel */ /* create a new channel */
layer = new_layer(width, height, GRAY, 255, NORMAL_MODE); layer = new_layer(width, height, GRAY_GIMAGE, 255, NORMAL_MODE);
if (!layer) return NULL; if (!layer) return NULL;
/* read in the channel properties */ /* read in the channel properties */
if (!xcf_load_channel_props(layer)) goto error; if (!xcf_load_channel_props(layer)) goto error;