Fix wrong prototype of GrowKnownVMs() in java.c

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: core-libs
    • b72

        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();

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

                Created:
                Updated:
                Resolved: