mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
3048df38de
commit
8797b76723
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue