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

PlatformMidi.c:83 uses malloc without malloc header

XMLWordPrintable

        /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'

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

                Created:
                Updated:
                Resolved: