<Sound Dev> [9] Review Request: 8129511 PlatformMidi.c:83 uses malloc without malloc header

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Thu Jul 9 13:15:55 UTC 2015


Hello.
Please review the fix for jdk9.
Another one compiler warning this time in sound:

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)));
                                                   ^
jdk/src/java.desktop/share/native/libjsound/PlatformMidi.c:83:51: note: 
include the header <stdlib.h> or explicitly provide a declaration for 
'malloc'


Bug: https://bugs.openjdk.java.net/browse/JDK-8129511
Webrev can be found at: http://cr.openjdk.java.net/~serb/8129511/webrev.00

-- 
Best regards, Sergey.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/sound-dev/attachments/20150709/3aadd74d/attachment.html>


More information about the sound-dev mailing list