This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Patch for bfd/cache.c - explicit cast to void*
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Jerker Bäck <jerker dot back at telia dot com>
- Cc: binutils at sourceware dot org, 'Alan Modra' <amodra at bigpond dot net dot au>
- Date: Sun, 01 Mar 2009 20:28:03 +0000
- Subject: Re: Patch for bfd/cache.c - explicit cast to void*
- References: <49a9869e.06e9300a.4fae.5455@mx.google.com> <20090228233323.GN6783@bubble.grove.modra.org> <002d01c99a52$255fc940$701f5bc0$@back@telia.com>
Jerker Bäck wrote:
> Hello Alan and thanks for answering
>
> OK, to make it more simple - this will also work and is maybe better:
>
> chunk_nread = cache_bread_1(abfd, (void*)((char*)buf + nread), chunk_size);
What compiler are you using? What error message do you get?
cheers,
DaveK