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@29258 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
07b2bd4491
commit
b1976d23bb
1 changed files with 6 additions and 1 deletions
|
@ -671,7 +671,7 @@ NSDeallocateObject(NSObject *anObject)
|
|||
void
|
||||
GSPrivateSwizzle(id o, Class c)
|
||||
{
|
||||
if (o->class_pointer != c)
|
||||
if ((Class)o->class_pointer != c)
|
||||
{
|
||||
#if GS_WITH_GC
|
||||
/* We only do allocation counting for objects that can be
|
||||
|
@ -2469,6 +2469,11 @@ objc_create_block_classes_as_subclasses_of(Class super) __attribute__((weak));
|
|||
|
||||
|
||||
@implementation NSZombie
|
||||
- (Class) class
|
||||
{
|
||||
GSLogZombie(self, @selector(class));
|
||||
return (Class)0;
|
||||
}
|
||||
- (Class) originalClass
|
||||
{
|
||||
return NSMapGet(zombieMap, (void*)self);
|
||||
|
|
Loading…
Reference in a new issue