diff options
author | Doug Kwan <dougkwan@google.com> | 2009-11-09 23:07:30 +0000 |
---|---|---|
committer | Doug Kwan <dougkwan@google.com> | 2009-11-09 23:07:30 +0000 |
commit | ac33a407acc5d00aa5a8617d4272b6a2ad01c480 (patch) | |
tree | 550c3d6e9a7e1a933b8f9713a5cd0b91efc365f3 /gold/object.cc | |
parent | 3ec0c9a0ca9de67c395255f9173e0e545e791811 (diff) | |
download | gdb-ac33a407acc5d00aa5a8617d4272b6a2ad01c480.zip gdb-ac33a407acc5d00aa5a8617d4272b6a2ad01c480.tar.gz gdb-ac33a407acc5d00aa5a8617d4272b6a2ad01c480.tar.bz2 |
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.
Diffstat (limited to 'gold/object.cc')
-rw-r--r-- | gold/object.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/object.cc b/gold/object.cc index 8089774..eeacdaa 100644 --- a/gold/object.cc +++ b/gold/object.cc @@ -2310,8 +2310,8 @@ make_elf_object(const std::string& name, Input_file* input_file, off_t offset, *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)) { |