mirror of
https://github.com/kyleneideck/BackgroundMusic
synced 2024-11-23 04:33:03 +00:00
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:
parent
f8fe456f44
commit
267c5a38e7
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue