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

Fix errors in LittleCMS 2.9 reported by GCC 8

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9, 10, 11, 12
    • Fix Version/s: 13
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • Resolved In Build:
      b09

      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:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: