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

Compilation failures in java.desktop module with gcc 14

    XMLWordPrintable

Details

    • b11

    Backports

      Description

        This fixes compiling with gcc 14:

        Cherry-pick a fix from Harfbuzz upstream
        Apply other -Wcalloc-transposed-args fixes to the JDK sources
        -Wcalloc-transposed-args errors out with gcc 14 as the OpenJDK build uses
        -Werror.

        The calloc prototype is:

        void *calloc(size_t nmemb, size_t size);
        So, just swap the number of members and size arguments to match the prototype, as
        we're initialising 1 struct of size sizeof(struct ...). GCC then sees we're not
        doing anything wrong.

        Attachments

          Issue Links

            Activity

              People

                jwaters Julian Waters
                jwaters Julian Waters
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: