diff options
author | Ben Elliston <bje@au.ibm.com> | 2009-01-18 08:51:56 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2009-01-18 19:51:56 +1100 |
commit | dba2cc0ce9134b5d3bb8a97d70ffe129beebf5a0 (patch) | |
tree | 54101be3b55ac0fb1b7eff2d7fdd408135e837ef /gcc/bitmap.c | |
parent | 3ab4dfd4062baf186aca3899d195a5c37ee6b2b5 (diff) | |
download | gcc-dba2cc0ce9134b5d3bb8a97d70ffe129beebf5a0.zip gcc-dba2cc0ce9134b5d3bb8a97d70ffe129beebf5a0.tar.gz gcc-dba2cc0ce9134b5d3bb8a97d70ffe129beebf5a0.tar.bz2 |
bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate C++ warning about implicit conversion from void * to...
* bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
C++ warning about implicit conversion from void * to struct
bitmap_head_def *.
(bitmap_obstack_free): Likewise for bitmap_element *.
From-SVN: r143480
Diffstat (limited to 'gcc/bitmap.c')
-rw-r--r-- | gcc/bitmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/bitmap.c b/gcc/bitmap.c index 5e841e0..34eace4 100644 --- a/gcc/bitmap.c +++ b/gcc/bitmap.c @@ -356,7 +356,7 @@ bitmap_obstack_alloc_stat (bitmap_obstack *bit_obstack MEM_STAT_DECL) bit_obstack = &bitmap_default_obstack; map = bit_obstack->heads; if (map) - bit_obstack->heads = (void *)map->first; + bit_obstack->heads = (struct bitmap_head_def *) map->first; else map = XOBNEW (&bit_obstack->obstack, bitmap_head); bitmap_initialize_stat (map, bit_obstack PASS_MEM_STAT); @@ -391,7 +391,7 @@ bitmap_obstack_free (bitmap map) if (map) { bitmap_clear (map); - map->first = (void *)map->obstack->heads; + map->first = (bitmap_element *) map->obstack->heads; #ifdef GATHER_STATISTICS register_overhead (map, -((int)sizeof (bitmap_head))); #endif |