This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Avoid 3 warnings
- From: Jakub Jelinek <jakub at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 19 Feb 2004 16:08:18 +0100
- Subject: [PATCH] Avoid 3 warnings
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
I've commited as obvious following patch to shut up 3 warnings.
2004-02-19 Jakub Jelinek <jakub@redhat.com>
gas/
* stabs.c (generate_asm_file): Avoid warning about use of
uninitialized variable.
binutils/
* objcopy.c (copy_section): Avoid warnings.
--- gas/stabs.c.jj 2003-12-22 10:49:44.000000000 +0100
+++ gas/stabs.c 2004-02-19 19:11:30.817144256 +0100
@@ -520,7 +520,7 @@ generate_asm_file (int type, char *file)
char *buf;
char *tmp = file;
char *endp = file + strlen (file);
- char *bufp = buf;
+ char *bufp;
if (last_file != NULL
&& strcmp (last_file, file) == 0)
--- binutils/objcopy.c.jj 2004-01-13 16:40:32.000000000 +0100
+++ binutils/objcopy.c 2004-02-19 19:06:30.866743648 +0100
@@ -2055,9 +2055,9 @@ copy_section (bfd *ibfd, sec_ptr isectio
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;
Jakub