diff options
author | Jakub Jelinek <jakub@redhat.com> | 2004-02-19 17:15:28 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2004-02-19 17:15:28 +0000 |
commit | 2f01ffbf77c3bfbcddba30c77ceb324fb2757ee8 (patch) | |
tree | 2fc29735cb5e7f58dcf793256cf6c709578aa322 /binutils | |
parent | 2ede629fa8f2410071e57bb43c46be438d5412b3 (diff) | |
download | gdb-2f01ffbf77c3bfbcddba30c77ceb324fb2757ee8.zip gdb-2f01ffbf77c3bfbcddba30c77ceb324fb2757ee8.tar.gz gdb-2f01ffbf77c3bfbcddba30c77ceb324fb2757ee8.tar.bz2 |
gas/
* stabs.c (generate_asm_file): Avoid warning about use of
uninitialized variable.
binutils/
* objcopy.c (copy_section): Avoid warnings.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 4 | ||||
-rw-r--r-- | binutils/objcopy.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 9c9ce85..5b0e33e 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +2004-02-19 Jakub Jelinek <jakub@redhat.com> + + * objcopy.c (copy_section): Avoid warnings. + 2004-02-14 Andrew Cagney <cagney@redhat.com> * ar.c (remove_output): Use bfd_cache_close. diff --git a/binutils/objcopy.c b/binutils/objcopy.c index d31eb8f..9623398 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -2055,9 +2055,9 @@ copy_section (bfd *ibfd, sec_ptr isection, void *obfdarg) if (copy_byte >= 0) { /* Keep only every `copy_byte'th byte in MEMHUNK. */ - char *from = memhunk + copy_byte; + char *from = (char *) memhunk + copy_byte; char *to = memhunk; - char *end = memhunk + size; + char *end = (char *) memhunk + size; for (; from < end; from += interleave) *to++ = *from; |