Fix unused variable warnings when building with the release config.

These were stopping BGMApp release builds from compiling because we have
warnings-as-errors enabled.
This commit is contained in:
Kyle Neideck 2016-04-10 16:59:58 +10:00
parent f8fe456f44
commit 267c5a38e7

View file

@ -76,7 +76,9 @@ static BGMMusicPlayer* sSelectedMusicPlayer;
// "For applications that declare themselves to have a dynamic scripting interface, this method will
// launch the application if it is not already running."
NSNotificationCenter* center = [[NSWorkspace sharedWorkspace] notificationCenter];
#if DEBUG
const char* mpName = [[[self class] name] UTF8String];
#endif
didLaunchToken = [center addObserverForName:NSWorkspaceDidLaunchApplicationNotification
object:nil
queue:nil
@ -113,6 +115,8 @@ static BGMMusicPlayer* sSelectedMusicPlayer;
DebugMsg("BGMMusicPlayer::eventDidFail: Apple event sent to %s failed. %s",
[[[self class] name] UTF8String],
[vars UTF8String]);
#else
#pragma unused (event, error)
#endif
return nil;