Details
-
Bug
-
Resolution: Fixed
-
P4
-
9, 10, 11, 12
-
b09
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8252598 | 11.0.10-oracle | Dmitry Chuyko | P4 | Resolved | Fixed | b01 |
JDK-8230176 | 11.0.5 | Dmitry Chuyko | P4 | Resolved | Fixed | b05 |
JDK-8230533 | openjdk8u232 | Dmitry Chuyko | P4 | Resolved | Fixed | b05 |
Description
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
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
Attachments
Issue Links
- backported by
-
JDK-8230176 Fix errors in LittleCMS 2.9 reported by GCC 8
- Resolved
-
JDK-8230533 Fix errors in LittleCMS 2.9 reported by GCC 8
- Resolved
-
JDK-8252598 Fix errors in LittleCMS 2.9 reported by GCC 8
- Resolved
- relates to
-
JDK-8213153 Clean up GCC 8 errors
- Closed