From 1020cb0ef362e54e91f256725c3a5b96d269f01f Mon Sep 17 00:00:00 2001 From: Dmitry Chuyko 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/java.desktop/share/native/liblcms/cmsxform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java.desktop/share/native/liblcms/cmsxform.c b/src/java.desktop/share/native/liblcms/cmsxform.c index 77d54804a42..007f770b676 100644 --- a/src/java.desktop/share/native/liblcms/cmsxform.c +++ b/src/java.desktop/share/native/liblcms/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; }