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

Fix wrong prototype of GrowKnownVMs() in java.c

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Resolved In Build:
      b72

      Backports

        Description

        In java.base/share/native/libjli/java.c GrowKnownVMs is declared as follows:

        static void GrowKnownVMs();

        however the actual signature of GrowKnownVMs is:

        static void GrowKnownVMs(int minimum);

        This leads to the following waring/error:

        /usr/work/d046063/OpenJDK/jdk9-dev/jdk/src/java.base/share/native/libjli/java.c: In function ‘ReadKnownVMs’:
        /usr/work/d046063/OpenJDK/jdk9-dev/jdk/src/java.base/share/native/libjli/java.c:1686:13: error: call to function ‘GrowKnownVMs’ without a real prototype [-Werror=unprototyped-calls]
                     GrowKnownVMs(cnt);
        /usr/work/d046063/OpenJDK/jdk9-dev/jdk/src/java.base/share/native/libjli/java.c:148:13: note: ‘GrowKnownVMs’ was declared here
         static void GrowKnownVMs();

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                simonis Volker Simonis
                Reporter:
                simonis Volker Simonis
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: