aboutsummaryrefslogtreecommitdiff
path: root/gcc/fix-header.c
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@adacore.com>2008-07-30 07:44:09 +0000
committerOlivier Hainque <hainque@gcc.gnu.org>2008-07-30 07:44:09 +0000
commit473e10621f06ef6cfd82f3875224c4b82c2eb7cf (patch)
tree5e51c8843a15f222aee2c5686f72ccdd40da0109 /gcc/fix-header.c
parenta7dafa20688ef5d60d8212ce9ef6dd74d7bb2e9a (diff)
downloadgcc-473e10621f06ef6cfd82f3875224c4b82c2eb7cf.zip
gcc-473e10621f06ef6cfd82f3875224c4b82c2eb7cf.tar.gz
gcc-473e10621f06ef6cfd82f3875224c4b82c2eb7cf.tar.bz2
scan.c (make_sstring_space): Add explicit conversions of allocator's return value.
* scan.c (make_sstring_space): Add explicit conversions of allocator's return value. * fix-header.c (recognized_function): Likewise. From-SVN: r138295
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r--gcc/fix-header.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index f691e4e..5402e94 100644
--- a/gcc/fix-header.c
+++ b/gcc/fix-header.c
@@ -562,7 +562,10 @@ recognized_function (const cpp_token *fname, unsigned int line, int kind,
/* We only have a partial function declaration,
so remember that we have to add a complete prototype. */
partial_count++;
- partial = obstack_alloc (&scan_file_obstack, sizeof (struct partial_proto));
+ partial
+ = (struct partial_proto *)
+ obstack_alloc (&scan_file_obstack,
+ sizeof (struct partial_proto));
partial->line_seen = line;
partial->fn = fn;
fn->partial = partial;