From 69f1e8ba0e0f0bf01195f230c47ad4be135ad2ce Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 20 Dec 2010 14:25:20 +0000 Subject: [PATCH] silence a warning --- macosx/Controller.m | 2 +- macosx/PrefsController.m | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 7bbef6658..ff7420692 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -149,7 +149,7 @@ typedef enum #define WEBSITE_URL @"http://www.transmissionbt.com/" #define FORUM_URL @"http://forum.transmissionbt.com/" -#define TRAC_URL @"http://trac.transmissionbt.com/" +#define TRAC_URL @"http://trac.transmissionbt.com/" #define DONATE_URL @"http://www.transmissionbt.com/donate.php" #define DONATE_NAG_TIME (60 * 60 * 24 * 7) diff --git a/macosx/PrefsController.m b/macosx/PrefsController.m index 03afad84a..2aa07e1f2 100644 --- a/macosx/PrefsController.m +++ b/macosx/PrefsController.m @@ -409,6 +409,9 @@ tr_session * fHandle; [fPortStatusField setStringValue: NSLocalizedString(@"Port check site is down", "Preferences -> Network -> port status")]; [fPortStatusImage setImage: [NSImage imageNamed: @"YellowDot.png"]]; break; + default: + NSAssert1(NO, @"Port checker returned invalid status: %d", [fPortChecker status]); + return; } [fPortChecker release]; fPortChecker = nil;