OSDN Git Service

* cpphash.c (alloc_node): Cast pointer.
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 May 2001 21:09:15 +0000 (21:09 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 May 2001 21:09:15 +0000 (21:09 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42720 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cpphash.c

index 63cb4a4..245fd64 100644 (file)
@@ -1,3 +1,7 @@
+2001-05-30  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * cpphash.c (alloc_node): Cast allocated pointer.
+
 2001-05-30  Gordon Sadler <gbsadler1@lcisp.com>
 
        * invoke.texi (Option Summary): Remove -isystem-c++ from options.
index 9383c27..9e15ab4 100644 (file)
@@ -39,7 +39,8 @@ alloc_node (table)
 {
   cpp_hashnode *node;
   
-  node = obstack_alloc (&table->pfile->hash_ob, sizeof (cpp_hashnode));
+  node = (cpp_hashnode *) obstack_alloc (&table->pfile->hash_ob,
+                                        sizeof (cpp_hashnode));
   memset ((PTR) node, 0, sizeof (cpp_hashnode));
   return node;
 }