* Fix Compile Time Warnings: binutils/objdump.c
@ 2005-02-23 19:59 Nick Clifton
2005-02-23 20:24 ` Nick Clifton
0 siblings, 1 reply; 2+ messages in thread
From: Nick Clifton @ 2005-02-23 19:59 UTC (permalink / raw)
To: binutils
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);
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fix Compile Time Warnings: binutils/objdump.c
2005-02-23 19:59 Fix Compile Time Warnings: binutils/objdump.c Nick Clifton
@ 2005-02-23 20:24 ` Nick Clifton
0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2005-02-23 20:24 UTC (permalink / raw)
To: Nick Clifton; +Cc: binutils
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.
Or rather it isn't because Alan beat me to it :-)
Cheers
Nick
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-23 16:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-23 19:59 Fix Compile Time Warnings: binutils/objdump.c Nick Clifton
2005-02-23 20:24 ` Nick Clifton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).