From: Nick Clifton <nickc@redhat.com>
To: binutils@sources.redhat.com
Subject: Fix Compile Time Warnings: binutils/objdump.c
Date: Wed, 23 Feb 2005 19:59:00 -0000 [thread overview]
Message-ID: <m3ekf78bkw.fsf@redhat.com> (raw)
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);
}
next reply other threads:[~2005-02-23 16:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-23 19:59 Nick Clifton [this message]
2005-02-23 20:24 ` Nick Clifton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3ekf78bkw.fsf@redhat.com \
--to=nickc@redhat.com \
--cc=binutils@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).