Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8215130

Fix errors in LittleCMS 2.9 reported by GCC 8

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b09

      Backports

        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

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dchuyko Dmitry Chuyko
                  Reporter:
                  dchuyko Dmitry Chuyko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: