mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-13 17:40:54 +00:00
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:
parent
506824d1fd
commit
2d99b4b95d
1 changed files with 10 additions and 10 deletions
|
@ -409,17 +409,17 @@ static inline NSValue* NSValueCreateFromPthread(pthread_t thread)
|
||||||
* from an NSValue.
|
* from an NSValue.
|
||||||
*/
|
*/
|
||||||
static inline void
|
static inline void
|
||||||
_getPthreadFromNSValue(NSValue* value, pthread_t *thread_ptr)
|
_getPthreadFromNSValue(const void *value, pthread_t *thread_ptr)
|
||||||
{
|
{
|
||||||
const char *enc;
|
const char *enc;
|
||||||
|
|
||||||
NSCAssert(thread_ptr, @"No storage for thread reference");
|
NSCAssert(thread_ptr, @"No storage for thread reference");
|
||||||
# ifndef NS_BLOCK_ASSERTIONS
|
# ifndef NS_BLOCK_ASSERTIONS
|
||||||
enc = [value objCType];
|
enc = [(NSValue*)value objCType];
|
||||||
NSCAssert(enc != NULL && (0 == strcmp(@encode(pthread_t),enc)),
|
NSCAssert(enc != NULL && (0 == strcmp(@encode(pthread_t),enc)),
|
||||||
@"Invalid NSValue container for thread reference");
|
@"Invalid NSValue container for thread reference");
|
||||||
# endif
|
# endif
|
||||||
[value getValue: (void*)thread_ptr];
|
[(NSValue*)value getValue: (void*)thread_ptr];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue