public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH]: elf32-m32c.c: Initialise the gap variable
@ 2006-03-02  9:37 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2006-03-02  9:37 UTC (permalink / raw)
  To: binutils

Hi Guys,

  I am checking in the patch below so that the variable 'gap' in the
  function m32c_elf_relax_section() is initialised before it is used.
  This was causing a compile time warning message from the gcc 4.0
  based compiler that I am currently using.

Cheers
  Nick

bfd/ChangeLog
2006-03-02  Nick Clifton  <nickc@redhat.com>

	* elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'.

Index: bfd/elf32-m32c.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-m32c.c,v
retrieving revision 1.3
diff -c -3 -p -r1.3 elf32-m32c.c
*** bfd/elf32-m32c.c	24 Feb 2006 22:10:35 -0000	1.3
--- bfd/elf32-m32c.c	2 Mar 2006 09:27:43 -0000
*************** m32c_elf_relax_section
*** 1532,1537 ****
--- 1532,1538 ----
        /* Setting gap_size nonzero is the flag which means "something
  	 shrunk".  */
        gap_size = 0;
+       gap = NULL;
        new_type = ELF32_R_TYPE(srel->r_info);
  
        pc = sec->output_section->vma + sec->output_offset

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-02  9:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-02  9:37 [PATCH]: elf32-m32c.c: Initialise the gap variable Nick Clifton

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).