From 06d250a7a274afcd763c4bab5fccb8ba2dc6e6c1 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 13 Aug 2012 00:56:52 +0000 Subject: [PATCH] silence warnings about string literals --- macosx/Controller.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index dca77b1ca..17ba019f1 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -653,7 +653,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy NSBeginAlertSheet(NSLocalizedString(@"Are you sure you want to quit?", "Confirm Quit panel -> title"), NSLocalizedString(@"Quit", "Confirm Quit panel -> button"), NSLocalizedString(@"Cancel", "Confirm Quit panel -> button"), nil, fWindow, self, - @selector(quitSheetDidEnd:returnCode:contextInfo:), nil, nil, message); + @selector(quitSheetDidEnd:returnCode:contextInfo:), nil, nil, @"%@", message); return NSTerminateLater; } } @@ -1407,7 +1407,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy NSBeginAlertSheet(title, NSLocalizedString(@"Remove", "Removal confirm panel -> button"), NSLocalizedString(@"Cancel", "Removal confirm panel -> button"), nil, fWindow, self, - nil, @selector(removeSheetDidEnd:returnCode:contextInfo:), dict, message); + nil, @selector(removeSheetDidEnd:returnCode:contextInfo:), dict, @"%@", message); return; } }