Avoid spurious compiler warnings

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39673 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2016-04-17 15:14:34 +00:00
parent 3048df38de
commit 8797b76723
2 changed files with 3 additions and 0 deletions

View file

@ -72,6 +72,7 @@
{
[NSException raise: NSInternalInconsistencyException
format: @"Unsupported socks verion: %@", version];
return nil; // Avoid spurious compiler warning
}
return [[concreteClass alloc] initWithConfiguration: aConfiguration
address: anAddress

View file

@ -1064,6 +1064,7 @@ if (aValue >= -1 && aValue <= 12)\
default:
[NSException raise: NSInternalInconsistencyException
format: @"unknown NSNumber type '%s'", type];
return; // Avoid spurious compiler warning.
}
[self getValue: buffer];
@ -1113,6 +1114,7 @@ if (aValue >= -1 && aValue <= 12)\
default:
[NSException raise: NSInternalInconsistencyException
format: @"unknown NSNumber type '%c'", type[0]];
return nil; // Avoid spurious compiler warning.
}
[coder decodeValueOfObjCType: type at: buffer];
return [self initWithBytes: buffer objCType: type];