1
0
Fork 0

Fix few trivial warnings in macOS code

Prevents "unused-variable" warnings and one "sometimes-uninitialized"
warning.
This commit is contained in:
Patryk Obara 2020-03-22 12:27:57 +01:00 committed by Patryk Obara
parent f959484192
commit 1d704d49a5
2 changed files with 1 additions and 3 deletions

View file

@ -117,7 +117,7 @@ public:
// Optionally load a soundfont
if (conf && conf[0]) {
soundfont = conf;
OSErr err;
OSErr err = 0;
#if USE_DEPRECATED_COREAUDIO_API
FSRef soundfontRef;
err = FSPathMakeRef((const UInt8*)soundfont, &soundfontRef, NULL);

View file

@ -30,7 +30,6 @@ public:
bool Open(const char * conf) {
// Get the MIDIEndPoint
m_endpoint = 0;
OSStatus result;
Bitu numDests = MIDIGetNumberOfDestinations();
Bitu destId = numDests;
if(conf && *conf) {
@ -115,7 +114,6 @@ public:
void PlaySysex(Bit8u * sysex, Bitu len) {
// Acquire a MIDIPacketList
Byte packetBuf[SYSEX_SIZE*4];
Bitu pos=0;
MIDIPacketList *packetList = (MIDIPacketList *)packetBuf;
m_pCurPacket = MIDIPacketListInit(packetList);