summaryrefslogtreecommitdiff
path: root/include/obstack.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2008-10-20 23:03:31 +0000
committerAlan Modra <amodra@bigpond.net.au>2008-10-20 23:03:31 +0000
commitf697ed2c183d1954b635a4ef4dc93cf712359830 (patch)
tree582f8058ef9ea045186db9d4b17d6f645c6db50d /include/obstack.h
parent4307c16013c66b9f60cbd6430c674737c6e95620 (diff)
downloadbinutils-redhat-f697ed2c183d1954b635a4ef4dc93cf712359830.tar.gz
* obstack.h (obstack_finish <!__GNUC__>): Cast result to void *.
Diffstat (limited to 'include/obstack.h')
-rw-r--r--include/obstack.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/obstack.h b/include/obstack.h
index 88c2a264ad..4aec3a484e 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, \