diff options
author | Kresten Krab Thorup <krab@gcc.gnu.org> | 1993-04-26 16:06:37 +0000 |
---|---|---|
committer | Kresten Krab Thorup <krab@gcc.gnu.org> | 1993-04-26 16:06:37 +0000 |
commit | a7ab3794a9967ba1aedecacdbb4cb700dcb03fbb (patch) | |
tree | c0e8d76217f1bf8d5b9e3c90ec680a116ee5c4c9 /gcc/objc/init.c | |
parent | 0cd02cbbfb635002ecd371f79243933fc34b1f47 (diff) | |
download | gcc-a7ab3794a9967ba1aedecacdbb4cb700dcb03fbb.zip gcc-a7ab3794a9967ba1aedecacdbb4cb700dcb03fbb.tar.gz gcc-a7ab3794a9967ba1aedecacdbb4cb700dcb03fbb.tar.bz2 |
Runtime portability cleanup
From-SVN: r4235
Diffstat (limited to 'gcc/objc/init.c')
-rw-r--r-- | gcc/objc/init.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gcc/objc/init.c b/gcc/objc/init.c index 453f166..c42715c 100644 --- a/gcc/objc/init.c +++ b/gcc/objc/init.c @@ -66,9 +66,6 @@ __objc_exec_class (Module_t module) /* The symbol table (defined in objc.h) generated by gcc */ Symtab_t symtab = module->symtab; - /* Pointer to the class Object class object */ - Class_t object_class; - /* Entry used to traverse hash lists */ struct objc_list** cell; @@ -166,7 +163,7 @@ __objc_exec_class (Module_t module) categories to objects. */ for (cell = &unclaimed_categories; *cell; - *cell && (cell = &(*cell)->tail)) + *cell && ((cell = &(*cell)->tail))) { Category_t category = (*cell)->head; Class_t class = objc_lookup_class (category->class_name); @@ -247,7 +244,7 @@ __objc_init_protocols (struct objc_protocol_list* protos) { fprintf (stderr, "Version %d doesn't protocol version %d\n", - ((int)((id)protos->list[i])->class_pointer), + ((size_t)((id)protos->list[i])->class_pointer), PROTOCOL_VERSION); abort (); } @@ -257,11 +254,6 @@ __objc_init_protocols (struct objc_protocol_list* protos) static void __objc_class_add_protocols (Class_t class, struct objc_protocol_list* protos) { -#ifndef NeXT_OBJC /* force class Protocol to be linked in */ - extern char* __objc_class_name_Protocol; - char* x = __objc_class_name_Protocol; -#endif - /* Well... */ if (! protos) return; |