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

Fix for 8132985 breaks OpenJDK build on windows.

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b94

      Backports

        Description

        JDK-8132985: Crash in freetypescaler.c due to double free

        eliminated use of the local variable "stream" but it is still declared

        The Microsoft Visual C compiler then issues a warning:

        c:/jprt/T/P1/210300.prrace/s//libfontmanager/freetypeScaler.c(106) : error C2220: warning treated as error - no 'object' file generated
        jdk/src/java.desktop/share/native/libfontmanager/freetypeScaler.c(106) : warning C4101: 'stream' : unreferenced local variable

        Since warnings are treated as errors the build then fails.

        I do not know if this fails with vs2010 but it does fail on the
        official VS2013 compiler.

        The fix is to remove the declaration

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                psadhukhan Prasanta Sadhukhan
                Reporter:
                prr Philip Race
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: