Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <modra@gmail.com>2008-10-21 03:03:31 +0400
committerAlan Modra <modra@gmail.com>2008-10-21 03:03:31 +0400
commit054dcc734c28ab6abf6b2461473d01c6b1c66aa1 (patch)
treea92c4eaa19b9f9e62da63c4206d3205ba594b4f5 /include
parent669bdeb82236ed53f094702ec4af7d253d828df4 (diff)
* obstack.h (obstack_finish <!__GNUC__>): Cast result to void *.
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/obstack.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 671bee394..beb78b71f 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 88c2a264a..4aec3a484 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, \