From f278806b976e638c29307598c496f59b1047f4fa Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Wed, 30 May 2001 21:09:15 +0000 Subject: [PATCH] * cpphash.c (alloc_node): Cast pointer. From-SVN: r42720 --- gcc/ChangeLog | 4 ++++ gcc/cpphash.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 63cb4a4..245fd64 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-05-30 Neil Booth + + * cpphash.c (alloc_node): Cast allocated pointer. + 2001-05-30 Gordon Sadler * invoke.texi (Option Summary): Remove -isystem-c++ from options. diff --git a/gcc/cpphash.c b/gcc/cpphash.c index 9383c27..9e15ab4 100644 --- a/gcc/cpphash.c +++ b/gcc/cpphash.c @@ -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; } -- 2.7.4