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

HarfBuzz: Remove trailing comma from the enum in hb-paint.h

XMLWordPrintable

    • 2d
    • generic
    • generic

      The following error takes place during JDK build with HarfBuzz version 7.0.1 on Solaris platform:

      libharfbuzz/hb-paint.h, line 620: error: trailing "," prohibited in enum declaration (E_TRAILING_COMMA_IN_ENUM)
      CC: Warning: Option -fsingle passed to ld, if ld is invoked, ignored otherwise
      libharfbuzz/hb-paint.h, line 620: Error: Identifier expected instead of "}".
       1 Error(s) detected.

      The root cause of the error is that hb-paint.h has the enum with trailing comma which was removed in upstream (HarfBuzz source repo):

      https://github.com/harfbuzz/harfbuzz/discussions/4188
      https://github.com/harfbuzz/harfbuzz/commit/04a47932a3844f7e73e3af8b05fb98c8b54fb779

            dmarkov Dmitry Markov
            dmarkov Dmitry Markov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: