Skip to content
Permalink
Browse files
8266248: Compilation failure in PLATFORM_API_MacOSX_MidiUtils.c with …
…Xcode 12.5

Backport-of: dedddd5ab2e39a30a039d24f629a7974048b0923
  • Loading branch information
Vladimir Kempik committed Sep 14, 2021
1 parent f75d51e commit a01ebe355c873e621343eae113265a57b4852f83
Showing 1 changed file with 5 additions and 5 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -255,9 +255,9 @@ INT32 MIDI_Utils_GetDeviceVersion(int direction, INT32 deviceID, char *name, UIN
}


static MIDIClientRef client = (MIDIClientRef) NULL;
static MIDIPortRef inPort = (MIDIPortRef) NULL;
static MIDIPortRef outPort = (MIDIPortRef) NULL;
static MIDIClientRef client = (MIDIClientRef) 0;
static MIDIPortRef inPort = (MIDIPortRef) 0;
static MIDIPortRef outPort = (MIDIPortRef) 0;

// Each MIDIPacket can contain more than one midi messages.
// This function processes the packet and adds the messages to the specified message queue.
@@ -463,7 +463,7 @@ INT32 MIDI_Utils_OpenDevice(int direction, INT32 deviceID, MacMidiDeviceHandle**
midiInit();

int err = MIDI_ERROR_NONE;
MIDIEndpointRef endpoint = (MIDIEndpointRef) NULL;
MIDIEndpointRef endpoint = (MIDIEndpointRef) 0;

TRACE0("MIDI_Utils_OpenDevice\n");

1 comment on commit a01ebe3

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on a01ebe3 Sep 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.