+2009-11-10 Doug Kwan <dougkwan@google.com>
+
+ * i386.cc (Target_i386::do_calls_non_split): Add a cast to avoid
+ a format warning.
+ * incremental.cc (open_incremental_binary): Initialized local
+ variables to avoid warnings.
+ * object.cc (make_elf_object): Ditto.
+ * x86_64.cc (Target_x86_64::do_calls_non_split): Add a cast to avoid
+ a format warning.
+
009-11-09 H.J. Lu <hongjiu.lu@intel.com>
PR gold/10930
if (!object->has_no_split_stack())
object->error(_("failed to match split-stack sequence at "
"section %u offset %0zx"),
- shndx, fnoffset);
+ shndx, static_cast<size_t>(fnoffset));
return;
}
return NULL;
}
- int size;
- bool big_endian;
+ int size = 0;
+ bool big_endian = false;
std::string error;
if (!elfcpp::Elf_recognizer::is_valid_header(p, want, &size, &big_endian,
&error))
*punconfigured = false;
std::string error;
- bool big_endian;
- int size;
+ bool big_endian = false;
+ int size = 0;
if (!elfcpp::Elf_recognizer::is_valid_header(p, bytes, &size,
&big_endian, &error))
{
if (!object->has_no_split_stack())
object->error(_("failed to match split-stack sequence at "
"section %u offset %0zx"),
- shndx, fnoffset);
+ shndx, static_cast<size_t>(fnoffset));
return;
}