[gimp/soc-2011-seamless-clone2] plug-ins: clean out compilation warning about types used by libpng.
- From: Clayton Walker <claytonw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2011-seamless-clone2] plug-ins: clean out compilation warning about types used by libpng.
- Date: Wed, 8 May 2013 14:54:32 +0000 (UTC)
commit 6a1d9cd49e4c1f5539e75f2124b9da35db6295cc
Author: Jehan <jehan girinstud io>
Date: Wed Dec 26 18:17:52 2012 +0900
plug-ins: clean out compilation warning about types used by libpng.
iCCP profile was changed from png_charpp to png_bytepp in 1.5.x (cf.
libpng manual). Older versions of libpng still works of course, but
we fix warnings for recent versions.
plug-ins/common/file-png.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index d19f63f..33892f6 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -1142,7 +1142,7 @@ load_image (const gchar *filename,
png_charp profname, profile;
int profcomp;
- if (png_get_iCCP (pp, info, &profname, &profcomp, &profile, &proflen))
+ if (png_get_iCCP (pp, info, &profname, &profcomp, (png_bytepp) &profile, &proflen))
{
GimpParasite *parasite;
@@ -1547,7 +1547,7 @@ save_image (const gchar *filename,
png_set_iCCP (pp, info,
profile_name ? profile_name : "ICC profile", 0,
- (gchar *) gimp_parasite_data (profile_parasite),
+ (png_const_bytep) gimp_parasite_data (profile_parasite),
gimp_parasite_data_size (profile_parasite));
g_free (profile_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]