Commit 81dc17df authored by Thomas Preud'homme's avatar Thomas Preud'homme
Browse files

Prevent -Wmaybe-uninitialized warning in cmse_scan

2016-06-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>

	bfd/
	* bfd/elf32-arm.c (cmse_scan): Declare and initialize j in the
	innermost conditional block containing all its uses.
parent 8f504539
2016-06-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
* bfd/elf32-arm.c (cmse_scan): Declare and initialize j in the
innermost conditional block containing all its uses.
2016-06-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
* elf32-arm.c (elf32_arm_gc_mark_extra_sections): Mark sections holding
......
......@@ -5531,10 +5531,14 @@ cmse_scan (bfd *input_bfd, struct elf32_arm_link_hash_table *htab,
&& hash->root.root.type != bfd_link_hash_defweak)
|| hash->root.type != STT_FUNC)
{
/* Initialize here to avoid warning about use of possibly
uninitialized variable. */
j = 0;
if (!hash)
{
/* Searching for a normal symbol with local binding. */
for (j = 0; j < ext_start; j++)
for (; j < ext_start; j++)
{
lsym_name =
bfd_elf_string_from_elf_section (input_bfd,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment