Changeset 2703

Show
Ignore:
Timestamp:
04/29/05 22:46:21 (3 years ago)
Author:
morris
Message:

Kill warnings on gcc4.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ZankaAdditions/trunk/NSFileManager-ZAAdditions.m

    r1629 r2703  
    8585        if([self fileExistsAtPath:path]) { 
    8686                if(hasResourceFork) { 
    87                         if(FSPathMakeRef([path fileSystemRepresentation], &fsRef, NULL) == noErr) { 
     87                        if(FSPathMakeRef((unsigned char *) [path fileSystemRepresentation], &fsRef, NULL) == noErr) { 
    8888                                if(FSGetCatalogInfo(&fsRef, kFSCatInfoRsrcSizes, &fsInfo, NULL, NULL, NULL) == noErr) 
    8989                                        *hasResourceFork = (fsInfo.rsrcLogicalSize > 0); 
  • ZankaAdditions/trunk/NSString-ZAAdditions.m

    r1629 r2703  
    434434@implementation NSAttributedString(ZAAttributedStringAdditions) 
    435435 
    436 + (NSAttributedString *)attributedString { 
     436+ (id)attributedString { 
    437437        return [[[self alloc] initWithString:@""] autorelease]; 
    438438} 
     
    440440 
    441441 
    442 + (NSAttributedString *)attributedStringWithString:(NSString *)string { 
     442+ (id)attributedStringWithString:(NSString *)string { 
    443443        return [[[self alloc] initWithString:string] autorelease]; 
    444444} 
     
    446446 
    447447 
    448 + (NSAttributedString *)attributedStringWithString:(NSString *)string attributes:(NSDictionary *)attributes { 
     448+ (id)attributedStringWithString:(NSString *)string attributes:(NSDictionary *)attributes { 
    449449        return [[[self alloc] initWithString:string attributes:attributes] autorelease]; 
    450450} 
    451451 
    452452@end 
    453  
    454  
    455  
    456 @implementation NSMutableAttributedString(ZAURLScanning) 
    457  
    458  
    459  
    460 @end 
  • ZankaAdditions/trunk/ZAObject.m

    r1629 r2703  
    3838 
    3939- (id)retain { 
    40         ZAAtomicIncrement(&_ZA_retainCount); 
     40        ZAAtomicIncrement((int *) & _ZA_retainCount); 
    4141         
    4242        return self; 
     
    4646 
    4747- (oneway void)release { 
    48         if(ZAAtomicDecrement(&_ZA_retainCount) == -1) 
     48        if(ZAAtomicDecrement((int *) &_ZA_retainCount) == -1) 
    4949                [self dealloc]; 
    5050}