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

Fix compiler warning in libt2k from gcc 4.9.2

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 9
    • Fix Version/s: None
    • Component/s: client-libs
    • Subcomponent:
      2d

      Description

      As part of the compiler upgrade project (JDK-8076053), an additional warning had to be disabled for libt2k (JDK-8134156):

      /localhome/hg/jdk9-dev-full/jdk/src/closed/java.desktop/share/native/libt2k/t2k/ttHints/HintGlyph.c: In function 'TTScalerHintGlyph':
      /localhome/hg/jdk9-dev-full/jdk/src/closed/java.desktop/share/native/libt2k/t2k/ttHints/HintGlyph.c:156:49: error: variable 'theGlyph' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]
                       perGlyph* theGlyph=0L;
                                                       ^

      However, disabling the warning is just a temporary fix. The problem should be fixed properly, and the line:

       DISABLED_WARNINGS_gcc := clobbered, \

      removed from make/closed/lib/Awt2dLibraries.gmk.

        Attachments

          Activity

            People

            • Assignee:
              prr Philip Race
              Reporter:
              ihse Magnus Ihse Bursie
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: