cast -scanString: return to void where we don't need to check it.

This commit is contained in:
Richard Frith-Macdonald 2018-02-08 06:10:47 +00:00
parent ab822a35a3
commit 323f9abace

View file

@ -2359,7 +2359,7 @@ GSICUStringMatchesRegex(NSString *string, NSString *regex, NSStringCompareOption
[self nextArg]];
case 'h':
[self scanString: @"h" intoString: NULL];
(void)[self scanString: @"h" intoString: NULL];
if ([self isAtEnd] == NO)
{
c = [[self string] characterAtIndex: [self scanLocation]];
@ -2373,7 +2373,7 @@ GSICUStringMatchesRegex(NSString *string, NSString *regex, NSStringCompareOption
break;
case 'q':
[self scanString: @"q" intoString: NULL];
(void)[self scanString: @"q" intoString: NULL];
if ([self isAtEnd] == NO)
{
c = [[self string] characterAtIndex: [self scanLocation]];