Fix Compile Time Warnings: binutils/objdump.c
Nick Clifton
nickc@redhat.com
Wed Feb 23 19:59:00 GMT 2005
Hi Guys,
This is just a small fix to objdump.c to fix a warning about
assigning the result of calling read_section_stabs (a char pointer)
to the global variable 'stabs' which is a bfd_byte pointer.
Cheers
Nick
binutils/ChangeLog
2005-02-23 Nick Clifton <nickc@redhat.com>
* objdump.c (find_stabs_section): Cast result of calling
read_section_stabs in order to avoid a compile time warning.
Index: binutils/objdump.c
===================================================================
RCS file: /cvs/src/src/binutils/objdump.c,v
retrieving revision 1.99
diff -c -3 -p -r1.99 objdump.c
*** binutils/objdump.c 22 Feb 2005 00:50:06 -0000 1.99
--- binutils/objdump.c 23 Feb 2005 16:37:54 -0000
*************** find_stabs_section (bfd *abfd, asection
*** 2056,2062 ****
if (strtab)
{
! stabs = read_section_stabs (abfd, section->name, &stab_size);
if (stabs)
print_section_stabs (abfd, section->name, &sought->string_offset);
}
--- 2056,2062 ----
if (strtab)
{
! stabs = (bfd_byte *) read_section_stabs (abfd, section->name, &stab_size);
if (stabs)
print_section_stabs (abfd, section->name, &sought->string_offset);
}
More information about the Binutils
mailing list