diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-04 00:22:31 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-04 00:22:31 +0000 |
commit | b8ede6a91143ce8a77cd3216bda7559ea931ac7f (patch) | |
tree | e38528c1314ca502032e5d589afa8b97dd2e7f61 /gcc/varray.c | |
parent | 5355170c21b367a7b1f5bf9037c05883a6a9e8da (diff) | |
download | gcc-b8ede6a91143ce8a77cd3216bda7559ea931ac7f.tar.gz |
* alloc-pool.c (hash_descriptor, eq_descriptor,
alloc_pool_descriptor): Fix -Wc++-compat warnings.
* bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
Likewise.
* ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics):
Likewise.
* varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137446 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varray.c')
-rw-r--r-- | gcc/varray.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/varray.c b/gcc/varray.c index 45330397e0e..6464a816652 100644 --- a/gcc/varray.c +++ b/gcc/varray.c @@ -49,13 +49,13 @@ static htab_t varray_hash; static hashval_t hash_descriptor (const void *p) { - const struct varray_descriptor *d = p; + const struct varray_descriptor *d = (const struct varray_descriptor *) p; return htab_hash_pointer (d->name); } static int eq_descriptor (const void *p1, const void *p2) { - const struct varray_descriptor *d = p1; + const struct varray_descriptor *d = (const struct varray_descriptor *) p1; return d->name == p2; } @@ -74,7 +74,7 @@ varray_descriptor (const char *name) 1); if (*slot) return *slot; - *slot = xcalloc (sizeof (**slot), 1); + *slot = XCNEW (struct varray_descriptor); (*slot)->name = name; return *slot; } |