aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/objc/init.c')
-rw-r--r--gcc/objc/init.c12
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;