mirror of
https://github.com/transmission/transmission
synced 2025-02-25 07:22:38 +00:00
fix 2 invalid return types; don't show notices when compiling the xib's
This commit is contained in:
parent
aae66cc073
commit
d4345a40b8
5 changed files with 19 additions and 4 deletions
Transmission.xcodeproj
macosx
|
@ -2291,6 +2291,10 @@
|
|||
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_UNROLL_LOOPS = NO;
|
||||
GCC_WARN_ABOUT_MISSING_NEWLINE = NO;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = NO;
|
||||
GCC_WARN_PROTOTYPE_CONVERSION = NO;
|
||||
GCC_WARN_SHADOW = NO;
|
||||
GCC_WARN_SIGN_COMPARE = NO;
|
||||
GCC_WARN_UNUSED_FUNCTION = NO;
|
||||
|
@ -2299,6 +2303,7 @@
|
|||
GCC_WARN_UNUSED_VALUE = NO;
|
||||
GCC_WARN_UNUSED_VARIABLE = NO;
|
||||
IBC_FLATTEN_NIBS = YES;
|
||||
IBC_NOTICES = NO;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.4;
|
||||
OTHER_CFLAGS = "$(inherited)";
|
||||
OTHER_LDFLAGS = "";
|
||||
|
@ -2408,9 +2413,14 @@
|
|||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GCC_UNROLL_LOOPS = NO;
|
||||
GCC_WARN_ABOUT_MISSING_NEWLINE = NO;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = NO;
|
||||
GCC_WARN_PROTOTYPE_CONVERSION = NO;
|
||||
GCC_WARN_UNUSED_FUNCTION = NO;
|
||||
GCC_WARN_UNUSED_PARAMETER = NO;
|
||||
GCC_WARN_UNUSED_VARIABLE = NO;
|
||||
IBC_NOTICES = NO;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.4;
|
||||
OTHER_LDFLAGS = "";
|
||||
PREBINDING = NO;
|
||||
|
@ -2428,9 +2438,14 @@
|
|||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
|
||||
GCC_UNROLL_LOOPS = NO;
|
||||
GCC_WARN_ABOUT_MISSING_NEWLINE = NO;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = NO;
|
||||
GCC_WARN_PROTOTYPE_CONVERSION = NO;
|
||||
GCC_WARN_UNUSED_FUNCTION = NO;
|
||||
GCC_WARN_UNUSED_PARAMETER = NO;
|
||||
GCC_WARN_UNUSED_VARIABLE = NO;
|
||||
IBC_NOTICES = NO;
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.4;
|
||||
OTHER_LDFLAGS = "";
|
||||
PREBINDING = NO;
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
long long fExpectedSize;
|
||||
}
|
||||
|
||||
+ (id) downloadWithPrefsController: (PrefsController *) prefsController;
|
||||
+ (void) downloadWithPrefsController: (PrefsController *) prefsController; //only use when no other blocklist downloads
|
||||
|
||||
- (void) cancelDownload: (id) sender;
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
|
||||
@implementation BlocklistDownloader
|
||||
|
||||
+ (id) downloadWithPrefsController: (PrefsController *) prefsController
|
||||
+ (void) downloadWithPrefsController: (PrefsController *) prefsController
|
||||
{
|
||||
BlocklistDownloader * downloader = [[BlocklistDownloader alloc] initWithPrefsController: prefsController];
|
||||
[downloader startDownload];
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
- (NSImage *) imageForIndex: (int) index;
|
||||
|
||||
- (NSColor *) colorForIndex: (int) index;
|
||||
- (NSColor *) setColor: (NSColor *) color forIndex: (int) index;
|
||||
- (void) setColor: (NSColor *) color forIndex: (int) index;
|
||||
|
||||
- (void) addNewGroup;
|
||||
- (void) removeGroupWithRowIndexes: (NSIndexSet *) rowIndexes;
|
||||
|
|
|
@ -156,7 +156,7 @@ GroupsController * fGroupsInstance = nil;
|
|||
return orderIndex != -1 ? [[fGroups objectAtIndex: orderIndex] objectForKey: @"Color"] : nil;
|
||||
}
|
||||
|
||||
- (NSColor *) setColor: (NSColor *) color forIndex: (int) index
|
||||
- (void) setColor: (NSColor *) color forIndex: (int) index
|
||||
{
|
||||
NSMutableDictionary * dict = [fGroups objectAtIndex: [self rowValueForIndex: index]];
|
||||
[dict removeObjectForKey: @"Icon"];
|
||||
|
|
Loading…
Reference in a new issue