diff options
author | Alan Modra <amodra@bigpond.net.au> | 2008-10-20 23:03:03 +0000 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2008-10-21 09:33:03 +1030 |
commit | 085c6bd4f784cce7b507cd2b003f70355d3ec1c4 (patch) | |
tree | f0b6168371e30a52b6f5a69b70d30632320b7e0b /include | |
parent | 500b9ca10d50d9d810cc7d712761fa0c295c2ff9 (diff) | |
download | gcc-085c6bd4f784cce7b507cd2b003f70355d3ec1c4.zip gcc-085c6bd4f784cce7b507cd2b003f70355d3ec1c4.tar.gz gcc-085c6bd4f784cce7b507cd2b003f70355d3ec1c4.tar.bz2 |
obstack.h (obstack_finish <!__GNUC__>): Cast result to void *.
* obstack.h (obstack_finish <!__GNUC__>): Cast result to void *.
From-SVN: r141254
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/obstack.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 20da618..e651bbf 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2008-10-21 Alan Modra <amodra@bigpond.net.au> + + * obstack.h (obstack_finish <!__GNUC__>): Cast result to void *. + 2008-10-06 Jason Merrill <jason@redhat.com> * demangle.h (enum demangle_component_type): Add diff --git a/include/obstack.h b/include/obstack.h index 88c2a26..4aec3a4 100644 --- a/include/obstack.h +++ b/include/obstack.h @@ -1,6 +1,6 @@ /* obstack.h - object stack macros Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004, 2005 + 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 Free Software Foundation, Inc. @@ -527,7 +527,7 @@ __extension__ \ > (h)->chunk_limit - (char *) (h)->chunk) \ ? ((h)->next_free = (h)->chunk_limit) : 0), \ (h)->object_base = (h)->next_free, \ - __INT_TO_PTR ((h)->temp)) + (void *) __INT_TO_PTR ((h)->temp)) # define obstack_free(h,obj) \ ( (h)->temp = (char *) (obj) - (char *) (h)->chunk, \ |