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'

              Assignee:
              Sergey Bylokhov
              Reporter:
              Gerard Ziemski (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: