mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Help checker know that we don't need return value
This commit is contained in:
parent
df6d65accc
commit
fcd464f118
2 changed files with 4 additions and 2 deletions
|
@ -6,9 +6,10 @@
|
|||
Update NSAssert() and NSCAssert() to handle variable arguments
|
||||
(as OSX has done) and mark the numbered macros as obsolete.
|
||||
* Source/NSMessagePort.m:
|
||||
* Source/NSSocketPort.m: Log if we fail to tuirn on keepalive
|
||||
* Source/NSSocketPort.m: Log if we fail to turn on keepalive
|
||||
* Source/NSURL.m: fix possible nul pointer dereference
|
||||
* Source/NSPropertyList.m: check step before use
|
||||
* Source/NSDate.m: add comment that we are ignoring non-digits
|
||||
|
||||
2018-02-05 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
|
|
|
@ -494,7 +494,8 @@ otherTime(NSDate* other)
|
|||
dtoIndex = 0;
|
||||
scanner = [NSScanner scannerWithString: string];
|
||||
[scanner setCaseSensitive: NO];
|
||||
[scanner scanUpToCharactersFromSet: digits intoString: 0];
|
||||
// We don't care if there are non-digit characters ... skip if they are there
|
||||
(void)[scanner scanUpToCharactersFromSet: digits intoString: 0];
|
||||
while ([scanner scanCharactersFromSet: digits intoString: &tmp] == YES)
|
||||
{
|
||||
int num = [tmp intValue];
|
||||
|
|
Loading…
Reference in a new issue