This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Fix Compile Time Warnings: binutils/objdump.c
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 23 Feb 2005 16:50:39 +0000
- Subject: Fix Compile Time Warnings: binutils/objdump.c
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);
}