Patch for bfd/cache.c - explicit cast to void*
Tom Tromey
tromey@redhat.com
Sun Mar 1 23:13:00 GMT 2009
>>>>> "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
More information about the Binutils
mailing list