mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
avoid compiler warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28342 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f0712303f8
commit
290b9c6a29
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-06-12 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSDistributedNotificationCenter.m: add explicit size casts
|
||||
to avoid compiler warnings.
|
||||
|
||||
2009-06-09 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* SSL/Source/GSSSLHandle.m: Disable v2 by default due to
|
||||
|
|
|
@ -339,7 +339,7 @@ static NSDistributedNotificationCenter *netCenter = nil;
|
|||
NS_DURING
|
||||
{
|
||||
[self _connect];
|
||||
[(id<GDNCProtocol>)_remote addObserver: (uint64_t)anObserver
|
||||
[(id<GDNCProtocol>)_remote addObserver: (uint64_t)(uintptr_t)anObserver
|
||||
selector: NSStringFromSelector(aSelector)
|
||||
name: notificationName
|
||||
object: anObject
|
||||
|
@ -465,7 +465,7 @@ static NSDistributedNotificationCenter *netCenter = nil;
|
|||
NS_DURING
|
||||
{
|
||||
[self _connect];
|
||||
[(id<GDNCProtocol>)_remote removeObserver: (uint64_t)anObserver
|
||||
[(id<GDNCProtocol>)_remote removeObserver: (uint64_t)(uintptr_t)anObserver
|
||||
name: notificationName
|
||||
object: anObject
|
||||
for: (id<GDNCClient>)self];
|
||||
|
@ -808,7 +808,7 @@ static NSDistributedNotificationCenter *netCenter = nil;
|
|||
{
|
||||
id userInfo;
|
||||
NSNotification *notification;
|
||||
id recipient = (id)observer;
|
||||
id recipient = (id)(uintptr_t)observer;
|
||||
|
||||
userInfo = [NSUnarchiver unarchiveObjectWithData: info];
|
||||
notification = [NSNotification notificationWithName: name
|
||||
|
|
Loading…
Reference in a new issue