Help checker know that we don't need return value

This commit is contained in:
Richard Frith-Macdonald 2018-02-06 16:49:07 +00:00
parent df6d65accc
commit fcd464f118
2 changed files with 4 additions and 2 deletions

View file

@ -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>

View file

@ -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];