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

Anton V. Tarasov anton.tarasov at oracle.com
Mon Jul 13 13:42:41 UTC 2015


Looks good.

Regards,
Anton.

On 09.07.2015 16:15, Sergey Bylokhov wrote:
> 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/20150713/a671ac57/attachment.html>


More information about the sound-dev mailing list