summaryrefslogtreecommitdiff
path: root/gcc/bitmap.c
diff options
context:
space:
mode:
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-18 08:51:56 +0000
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-18 08:51:56 +0000
commit76cd80c70849fa15bf1f5d53accfdd1224e93e74 (patch)
tree54101be3b55ac0fb1b7eff2d7fdd408135e837ef /gcc/bitmap.c
parent9896aeb78483c8e62c079518f2f063e11ebdf2c3 (diff)
downloadgcc-76cd80c70849fa15bf1f5d53accfdd1224e93e74.tar.gz
* 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 *. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143480 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bitmap.c')
-rw-r--r--gcc/bitmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/bitmap.c b/gcc/bitmap.c
index 5e841e067a5..34eace495f8 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