From b7712f8d34a62b72196017c71099138cd8eccf7a Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 22 Feb 2005 12:58:35 +0000 Subject: [PATCH] * read.c: Warning fixes. * config/obj-elf.c: Likewise. --- gas/ChangeLog | 5 +++++ gas/config/obj-elf.c | 2 +- gas/read.c | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index e41a7e1efd..bd343d2fa4 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2005-02-22 Alan Modra + + * read.c: Warning fixes. + * config/obj-elf.c: Likewise. + 2005-02-22 Maciej W. Rozycki * config/tc-mips.c (append_insn): Call dwarf2_emit_insn() before diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index c7907b3756..37bb27ff6b 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -1936,7 +1936,7 @@ elf_frob_file (void) size = 4 * (list.elt_count[i] + 1); bfd_set_section_size (stdoutput, s, size); - s->contents = frag_more (size); + s->contents = (unsigned char *) frag_more (size); frag_now->fr_fix = frag_now_fix_octets (); } diff --git a/gas/read.c b/gas/read.c index c86b7d7c1e..9ee8d498a1 100644 --- a/gas/read.c +++ b/gas/read.c @@ -4410,7 +4410,7 @@ void emit_leb128_expr (expressionS *exp, int sign) { operatorT op = exp->X_op; - int nbytes; + unsigned int nbytes; if (op == O_absent || op == O_illegal) { @@ -4442,7 +4442,7 @@ emit_leb128_expr (expressionS *exp, int sign) /* Let check_eh_frame know that data is being emitted. nbytes == -1 is a signal that this is leb128 data. It shouldn't optimize this away. */ - nbytes = -1; + nbytes = (unsigned int) -1; if (check_eh_frame (exp, &nbytes)) abort ();