summaryrefslogtreecommitdiff
path: root/libobjc/init.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2002-06-15 17:50:14 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2002-06-15 17:50:14 +0000
commit8f8c44cb4fe52e7eb0440abcbc052e0f80cf8037 (patch)
treecd175472b2e9e3cb8c294184c253b7e74efaff38 /libobjc/init.c
parentd5355cb2c6e1748f221a88b36902a798fa9a0cd2 (diff)
Object.m: Fix signed/unsigned warning.
* Object.m: Fix signed/unsigned warning. * Protocol.m: Likewise. * archive.c: Always include stdlib.h. (objc_read_short, objc_read_unsigned_short, objc_read_int, objc_read_long, __objc_read_nbyte_uint, __objc_read_nbyte_ulong): Fix signed/unsigned warning. (objc_write_type, objc_read_type, objc_write_types, objc_read_types): Ensure ctype 8-bit safety. (__objc_no_write, __objc_no_read): Mark unused parameters. * class.c (class_table_setup): Specify void arg. * encoding.c (atoi, objc_sizeof_type, objc_alignof_type, objc_skip_typespec, objc_skip_offset, objc_layout_structure_next_member): Ensure ctype 8-bit safety. (objc_layout_structure_next_member): Ensure variables are initialized. * gc.c (__objc_generate_gc_type_description, class_ivar_set_gcinvisible): Mark unused parameters. * init.c (__objc_send_load, __objc_destroy_class_tree_node): Mark unused parameters. (__objc_init_protocols) Fix signed/unsigned warning. * nil_method.c (nil_method): Mark unused parameters. * thr.h (objc_thread_callback): Specify void arg. * sarray.c (sarray_new, sarray_realloc, sarray_free): Fix signed/unsigned warning. (sarray_free): Fix formatting. * selector.c (sel_types_match): Ensure ctype 8-bit safety. * sendmsg.c (__objc_init_install_dtable) Mark unused parameters. From-SVN: r54649
Diffstat (limited to 'libobjc/init.c')
-rw-r--r--libobjc/init.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libobjc/init.c b/libobjc/init.c
index 552a74bb549..e257aee3546 100644
--- a/libobjc/init.c
+++ b/libobjc/init.c
@@ -329,7 +329,8 @@ __objc_send_message_in_list (MethodList_t method_list, Class class, SEL op)
}
static void
-__objc_send_load (objc_class_tree *tree, int level)
+__objc_send_load (objc_class_tree *tree,
+ int level __attribute__ ((__unused__)))
{
static SEL load_sel = 0;
Class class = tree->class;
@@ -342,7 +343,8 @@ __objc_send_load (objc_class_tree *tree, int level)
}
static void
-__objc_destroy_class_tree_node (objc_class_tree *tree, int level)
+__objc_destroy_class_tree_node (objc_class_tree *tree,
+ int level __attribute__ ((__unused__)))
{
objc_free (tree);
}
@@ -776,7 +778,7 @@ static void init_check_module_version(Module_t module)
static void
__objc_init_protocols (struct objc_protocol_list* protos)
{
- int i;
+ size_t i;
static Class proto_class = 0;
if (! protos)