From 67f5655f98d39da5e593381ebcc35a1af9540ffa Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Sun, 29 Jan 2006 09:10:48 +0000 Subject: call.c (alloc_conversion): Use cast when converting from void *. * call.c (alloc_conversion): Use cast when converting from void *. (alloc_conversions): Likewise. (add_candidate): Likewise. (print_z_candidates): Likewise. (add_warning): Likewise. * pt.c (retrieve_local_specialization): Likewise. (process_partial_specialization): Likewise. (mangle_class_name_for_template): Likewise. (tsubst_template_args): Likewise. * typeck2.c (pat_calc_hash): Likewise. (pat_compare): Likewise. (abstract_virtuals_error): Likewise. * class.c (method_name_cmp): Likewise. (resort_method_name_cmp): Likewise. (get_vfield_name): Likewise. * decl2.c (generate_ctor_and_dtor_functions_for_priority): Likewise. * lex.c (init_reswords): Likewise. * rtti.c (create_pseudo_type_info): Likewise. * search.c (dfs_lookup_base): Likewise. (dfs_dcast_hint_pre): Likewise. (dfs_dcast_hint_post): Likewise. * tree.c (hash_tree_cons): Likewise. * repo.c (extract_string): Likewise. (afgets): Likewise. * cp-objcp-common.c (decl_shadowed_for_var_lookup): Likewise. * g++spec.c (lang_specific_driver): Likewise. From-SVN: r110366 --- gcc/cp/class.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'gcc/cp/class.c') diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 275cbce..fd50f17 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -1617,8 +1617,8 @@ static struct { static int method_name_cmp (const void* m1_p, const void* m2_p) { - const tree *const m1 = m1_p; - const tree *const m2 = m2_p; + const tree *const m1 = (const tree *) m1_p; + const tree *const m2 = (const tree *) m2_p; if (*m1 == NULL_TREE && *m2 == NULL_TREE) return 0; @@ -1637,8 +1637,8 @@ method_name_cmp (const void* m1_p, const void* m2_p) static int resort_method_name_cmp (const void* m1_p, const void* m2_p) { - const tree *const m1 = m1_p; - const tree *const m2 = m2_p; + const tree *const m1 = (const tree *) m1_p; + const tree *const m2 = (const tree *) m2_p; if (*m1 == NULL_TREE && *m2 == NULL_TREE) return 0; if (*m1 == NULL_TREE) @@ -6194,7 +6194,8 @@ get_vfield_name (tree type) } type = BINFO_TYPE (binfo); - buf = alloca (sizeof (VFIELD_NAME_FORMAT) + TYPE_NAME_LENGTH (type) + 2); + buf = (char *) alloca (sizeof (VFIELD_NAME_FORMAT) + + TYPE_NAME_LENGTH (type) + 2); sprintf (buf, VFIELD_NAME_FORMAT, IDENTIFIER_POINTER (constructor_name (type))); return get_identifier (buf); -- cgit v1.1