[PATCH] Avoid 3 warnings
Jakub Jelinek
jakub@redhat.com
Thu Feb 19 17:16:00 GMT 2004
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
More information about the Binutils
mailing list