From 25ee31b1b2f9bbbc1dbd1a4da0f010ce7f04f3e5 Mon Sep 17 00:00:00 2001 From: dchuyko Date: Fri, 8 Feb 2019 16:37:35 +0300 Subject: [PATCH] 8215130: Fix errors in LittleCMS 2.9 reported by GCC 8 Reviewed-by: prr --- src/share/native/sun/java2d/cmm/lcms/cmsxform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/native/sun/java2d/cmm/lcms/cmsxform.c b/src/share/native/sun/java2d/cmm/lcms/cmsxform.c index 77d54804a..007f770b6 100644 --- a/src/share/native/sun/java2d/cmm/lcms/cmsxform.c +++ b/src/share/native/sun/java2d/cmm/lcms/cmsxform.c @@ -836,7 +836,7 @@ _cmsTRANSFORM* AllocEmptyTransform(cmsContext ContextID, cmsPipeline* lut, // Save the day? (Ignore the warning) if (Plugin->OldXform) { - p->OldXform = (_cmsTransformFn) p->xform; + p->OldXform = (_cmsTransformFn)(void*) p->xform; p->xform = _cmsTransform2toTransformAdaptor; } -- GitLab