8215130: Fix errors in LittleCMS 2.9 reported by GCC 8
authordchuyko
Fri, 08 Feb 2019 16:37:35 +0300
changeset 53797 c1af89d9d44c
parent 53796 fec908fc5a2a
child 53798 fcac457cb2a8
8215130: Fix errors in LittleCMS 2.9 reported by GCC 8 Reviewed-by: prr
src/java.desktop/share/native/liblcms/cmsxform.c
--- a/src/java.desktop/share/native/liblcms/cmsxform.c	Thu Feb 07 13:57:12 2019 +0000
+++ b/src/java.desktop/share/native/liblcms/cmsxform.c	Fri Feb 08 16:37:35 2019 +0300
@@ -836,7 +836,7 @@
 
                             // Save the day? (Ignore the warning)
                             if (Plugin->OldXform) {
-                                   p->OldXform = (_cmsTransformFn) p->xform;
+                                   p->OldXform = (_cmsTransformFn)(void*) p->xform;
                                    p->xform = _cmsTransform2toTransformAdaptor;
                             }