This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch for bfd/cache.c - explicit cast to void*


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]