summaryrefslogtreecommitdiff
path: root/gcc/cpphash.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-30 21:09:15 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-30 21:09:15 +0000
commit3ce2d1ffc3bea2858c96c25dff9cc2465e414a83 (patch)
tree2da38a0f256e481be6297f43f2322f901b7c0a45 /gcc/cpphash.c
parent160b886dc4fb50cddb4c16cf4f14e4c29b2e364e (diff)
downloadgcc-3ce2d1ffc3bea2858c96c25dff9cc2465e414a83.tar.gz
* cpphash.c (alloc_node): Cast pointer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42720 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpphash.c')
-rw-r--r--gcc/cpphash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cpphash.c b/gcc/cpphash.c
index 9383c27ccb9..9e15ab48f03 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;
}