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

PlatformMidi.c:83 uses malloc without malloc header

    XMLWordPrintable

    Details

      Backports

        Description

        /Volumes/Work/current/jdks/jdk9/jdk/src/java.desktop/share/native/libjsound/PlatformMidi.c:83:51: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)'
            MidiMessageQueue* queue = (MidiMessageQueue*) malloc(sizeof(MidiMessageQueue) + ((capacity-1) * sizeof(MidiMessage)));
                                                          ^
        /Volumes/Work/current/jdks/jdk9/jdk/src/java.desktop/share/native/libjsound/PlatformMidi.c:83:51: note: include the header <stdlib.h> or explicitly provide a declaration for 'malloc'

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                serb Sergey Bylokhov
                Reporter:
                gziemski Gerard Ziemski
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: