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: Tom Tromey <tromey at redhat dot com>
- To: Jerker BÃck <jerker dot back at telia dot com>
- Cc: <binutils at sourceware dot org>
- Date: Sun, 01 Mar 2009 16:13:09 -0700
- Subject: Re: Patch for bfd/cache.c - explicit cast to void*
- References: <49a9869e.06e9300a.4fae.5455@mx.google.com> <48730.7338080884$1235899012@news.gmane.org>
- Reply-to: tromey at redhat dot com
>>>>> "Jerker" == Jerker BÃck <jerker.back@telia.com> writes:
Jerker> Some compilers refuse to compile the current source and emmits:
Jerker> error C2036: 'void *' : unknown size
gdb uses -Wpointer-arith when compiled with gcc; perhaps binutils
ought to do this as well.
Jerker> + chunk_nread = cache_bread_1 (abfd, (void*)((file_ptr)buf + nread), chunk_size);
I think just (char *) buf + nread would be more typical.
Tom