avoid compiler warnings and stasndardise a few declarations

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39672 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2016-04-17 15:07:38 +00:00
parent 506824d1fd
commit 2d99b4b95d

View file

@ -409,17 +409,17 @@ static inline NSValue* NSValueCreateFromPthread(pthread_t thread)
* from an NSValue.
*/
static inline void
_getPthreadFromNSValue(NSValue* value, pthread_t *thread_ptr)
_getPthreadFromNSValue(const void *value, pthread_t *thread_ptr)
{
const char *enc;
NSCAssert(thread_ptr, @"No storage for thread reference");
# ifndef NS_BLOCK_ASSERTIONS
enc = [value objCType];
enc = [(NSValue*)value objCType];
NSCAssert(enc != NULL && (0 == strcmp(@encode(pthread_t),enc)),
@"Invalid NSValue container for thread reference");
# endif
[value getValue: (void*)thread_ptr];
[(NSValue*)value getValue: (void*)thread_ptr];
}
/**