Commit dba2cc0c by Ben Elliston Committed by Ben Elliston

bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate C++ warning about…

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
parent 3ab4dfd4
2009-01-18 Ben Elliston <bje@au.ibm.com>
* 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 *.
2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com> 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
* Makefile.in (BACKENDLIBS): Reorder to match dependencies. * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
......
...@@ -356,7 +356,7 @@ bitmap_obstack_alloc_stat (bitmap_obstack *bit_obstack MEM_STAT_DECL) ...@@ -356,7 +356,7 @@ bitmap_obstack_alloc_stat (bitmap_obstack *bit_obstack MEM_STAT_DECL)
bit_obstack = &bitmap_default_obstack; bit_obstack = &bitmap_default_obstack;
map = bit_obstack->heads; map = bit_obstack->heads;
if (map) if (map)
bit_obstack->heads = (void *)map->first; bit_obstack->heads = (struct bitmap_head_def *) map->first;
else else
map = XOBNEW (&bit_obstack->obstack, bitmap_head); map = XOBNEW (&bit_obstack->obstack, bitmap_head);
bitmap_initialize_stat (map, bit_obstack PASS_MEM_STAT); bitmap_initialize_stat (map, bit_obstack PASS_MEM_STAT);
...@@ -391,7 +391,7 @@ bitmap_obstack_free (bitmap map) ...@@ -391,7 +391,7 @@ bitmap_obstack_free (bitmap map)
if (map) if (map)
{ {
bitmap_clear (map); bitmap_clear (map);
map->first = (void *)map->obstack->heads; map->first = (bitmap_element *) map->obstack->heads;
#ifdef GATHER_STATISTICS #ifdef GATHER_STATISTICS
register_overhead (map, -((int)sizeof (bitmap_head))); register_overhead (map, -((int)sizeof (bitmap_head)));
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment