2012-02-02  Tristan Gingold  <gingold@adacore.com>

	* mach-o.c (bfd_mach_o_read_header): Silent uninitialized
	variable warning.

gas/
2012-02-02  Tristan Gingold  <gingold@adacore.com>

	* config/obj-macho.c (obj_mach_o_zerofill): Silent
	uninitialized variable warning.
This commit is contained in:
Tristan Gingold 2012-02-02 11:55:43 +00:00
parent cd99171ce1
commit facf03f2c3
4 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-02-02 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_read_header): Silent uninitialized
variable warning.
2012-02-02 Tristan Gingold <gingold@adacore.com>
* archive.c (bfd_slurp_armap): Fix thinko in cast.

View file

@ -2522,6 +2522,8 @@ bfd_mach_o_read_header (bfd *abfd, bfd_mach_o_header *header)
if (mach_o_wide_p (header))
header->reserved = (*get32) (raw.reserved);
else
header->reserved = 0;
return TRUE;
}

View file

@ -1,3 +1,8 @@
2012-02-02 Tristan Gingold <gingold@adacore.com>
* config/obj-macho.c (obj_mach_o_zerofill): Silent
uninitialized variable warning.
2012-02-02 Nick Clifton <nickc@redhat.com>
PR gas/13224

View file

@ -434,7 +434,7 @@ obj_mach_o_zerofill (int ignore ATTRIBUTE_UNUSED)
symbolS *sym = NULL;
unsigned int align = 0;
unsigned int specified_mask = 0;
offsetT size;
offsetT size = 0;
#ifdef md_flush_pending_output
md_flush_pending_output ();