GCC 8 reports an error:
cmsxform.c:839:50: error: cast between incompatible function types from '_cmsTransform2Fn' {aka 'void (*)(struct _cmstransform_struct *, const void *, void *, unsigned int, unsigned int, const struct )'} to 'void ()(struct _cmstransform_struct *, const void *, void , cmsUInt32Number, cmsUInt32Number)' {aka 'void ()(struct _cmstransform_struct *, const void *, void *, unsigned int, unsigned int)'} [-Werror=cast-function-type]
p->OldXform = (_cmsTransformFn) p->xform;
^
It is fixed by a cast through void* in current mainline (still 2.9 based) of the library:
https://github.com/mm2/Little-CMS/commit/8005ab02c3be0680fecc7c86d719b6c2545b5671