mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Don't return values from methods returning void.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17502 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d09f916bc2
commit
cd10671142
5 changed files with 21 additions and 13 deletions
|
@ -1,3 +1,11 @@
|
|||
2003-08-20 13:59 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
Clean up code to remove warnings issued by (what will become)
|
||||
gcc 3.4.
|
||||
|
||||
* Source/GSString.m, Source/NSArchiver.m, Source/NSAttributedString.m,
|
||||
Source/NSRunLoop.m: Don't return values from methods returning void.
|
||||
|
||||
2003-08-19 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* configure.ac: Clarify ffi interface warnings and disable_do on
|
||||
|
|
|
@ -811,7 +811,7 @@ cString_c(ivars self)
|
|||
}
|
||||
NSZoneFree(NSDefaultMallocZone(), u);
|
||||
}
|
||||
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
|
@ -1127,7 +1127,7 @@ getCString_u(ivars self, char *buffer, unsigned int maxLength,
|
|||
can't deal with our leftoverRange case, so we need to use a bit of
|
||||
complexity instead. */
|
||||
unsigned int len;
|
||||
|
||||
|
||||
/* TODO: this is an extremely ugly hack to work around buggy iconvs
|
||||
that return -1/E2BIG for buffers larger than 0x40000acf */
|
||||
if (maxLength > 0x40000000)
|
||||
|
@ -3398,12 +3398,12 @@ transmute(ivars self, NSString *aString)
|
|||
|
||||
- (void) getCharacters: (unichar*)buffer
|
||||
{
|
||||
return [_parent getCharacters: buffer];
|
||||
[_parent getCharacters: buffer];
|
||||
}
|
||||
|
||||
- (void) getCharacters: (unichar*)buffer range: (NSRange)aRange
|
||||
{
|
||||
return [_parent getCharacters: buffer range: aRange];
|
||||
[_parent getCharacters: buffer range: aRange];
|
||||
}
|
||||
|
||||
- (void) getCString: (char*)buffer
|
||||
|
|
|
@ -161,7 +161,7 @@ static Class NSMutableDataMallocClass;
|
|||
}
|
||||
NSZoneFree(_clsMap->zone, (void*)_clsMap);
|
||||
}
|
||||
return [super dealloc];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
+ (NSData*) archivedDataWithRootObject: (id)rootObject
|
||||
|
|
|
@ -887,12 +887,12 @@ static Class GSMutableAttributedStringClass;
|
|||
|
||||
- (void)getCharacters: (unichar*)buffer
|
||||
{
|
||||
return [[_owner string] getCharacters: buffer];
|
||||
[[_owner string] getCharacters: buffer];
|
||||
}
|
||||
|
||||
- (void)getCharacters: (unichar*)buffer range: (NSRange)aRange
|
||||
{
|
||||
return [[_owner string] getCharacters: buffer range: aRange];
|
||||
[[_owner string] getCharacters: buffer range: aRange];
|
||||
}
|
||||
|
||||
- (const char*) cString
|
||||
|
@ -922,7 +922,7 @@ static Class GSMutableAttributedStringClass;
|
|||
|
||||
- (void) encodeWithCoder: (NSCoder*)aCoder
|
||||
{
|
||||
return [[_owner string] encodeWithCoder: aCoder];
|
||||
[[_owner string] encodeWithCoder: aCoder];
|
||||
}
|
||||
|
||||
- (Class) classForCoder
|
||||
|
|
|
@ -2101,10 +2101,10 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
|
|||
- (void) addPort: (NSPort*)port
|
||||
forMode: (NSString*)mode
|
||||
{
|
||||
return [self addEvent: (void*)port
|
||||
type: ET_RPORT
|
||||
watcher: (id<RunLoopEvents>)port
|
||||
forMode: (NSString*)mode];
|
||||
[self addEvent: (void*)port
|
||||
type: ET_RPORT
|
||||
watcher: (id<RunLoopEvents>)port
|
||||
forMode: (NSString*)mode];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2256,7 +2256,7 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
|
|||
- (void) removePort: (NSPort*)port
|
||||
forMode: (NSString*)mode
|
||||
{
|
||||
return [self removeEvent: (void*)port type: ET_RPORT forMode: mode all: NO];
|
||||
[self removeEvent: (void*)port type: ET_RPORT forMode: mode all: NO];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue