diff options
| author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2006-01-29 09:10:48 +0000 |
|---|---|---|
| committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2006-01-29 09:10:48 +0000 |
| commit | 67f5655f98d39da5e593381ebcc35a1af9540ffa (patch) | |
| tree | 7c783a02942f4003c69cd3138d64a9042883668f /gcc/cp/call.c | |
| parent | 2990f854e5290b9b23b6f6aeea977d958d80eb58 (diff) | |
| download | gcc-67f5655f98d39da5e593381ebcc35a1af9540ffa.zip gcc-67f5655f98d39da5e593381ebcc35a1af9540ffa.tar.gz gcc-67f5655f98d39da5e593381ebcc35a1af9540ffa.tar.bz2 | |
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
Diffstat (limited to 'gcc/cp/call.c')
| -rw-r--r-- | gcc/cp/call.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 2fc5c57..b5998fa 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -468,7 +468,7 @@ static conversion * alloc_conversion (conversion_kind kind) { conversion *c; - c = conversion_obstack_alloc (sizeof (conversion)); + c = (conversion *) conversion_obstack_alloc (sizeof (conversion)); c->kind = kind; return c; } @@ -493,7 +493,7 @@ validate_conversion_obstack (void) static conversion ** alloc_conversions (size_t n) { - return conversion_obstack_alloc (n * sizeof (conversion *)); + return (conversion **) conversion_obstack_alloc (n * sizeof (conversion *)); } static conversion * @@ -1269,8 +1269,8 @@ add_candidate (struct z_candidate **candidates, tree access_path, tree conversion_path, int viable) { - struct z_candidate *cand - = conversion_obstack_alloc (sizeof (struct z_candidate)); + struct z_candidate *cand = (struct z_candidate *) + conversion_obstack_alloc (sizeof (struct z_candidate)); cand->fn = fn; cand->args = args; @@ -2442,7 +2442,7 @@ print_z_candidates (struct z_candidate *candidates) /* Indent successive candidates by the width of the translation of the above string. */ size_t len = gcc_gettext_width (str) + 1; - char *spaces = alloca (len); + char *spaces = (char *) alloca (len); memset (spaces, ' ', len-1); spaces[len - 1] = '\0'; @@ -5931,9 +5931,8 @@ source_type (conversion *t) static void add_warning (struct z_candidate *winner, struct z_candidate *loser) { - candidate_warning *cw; - - cw = conversion_obstack_alloc (sizeof (candidate_warning)); + candidate_warning *cw = (candidate_warning *) + conversion_obstack_alloc (sizeof (candidate_warning)); cw->loser = loser; cw->next = winner->warnings; winner->warnings = cw; |
