[gimp] plug-ins: clean out compilation warning about types used by libpng.



commit a02facf41e7ef1fd9a961689615b78e41e7e25ab
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]