mirror of
https://github.com/serge1/ELFIO.git
synced 2024-12-29 09:16:47 +00:00
initialized a few variables to silence warnings when building with Wall
This commit is contained in:
parent
1676247836
commit
d2a27c7d96
@ -606,12 +606,12 @@ class dump
|
|||||||
}
|
}
|
||||||
for ( Elf_Xword i = 0; i < sym_no; ++i ) {
|
for ( Elf_Xword i = 0; i < sym_no; ++i ) {
|
||||||
std::string name;
|
std::string name;
|
||||||
Elf64_Addr value;
|
Elf64_Addr value = 0;
|
||||||
Elf_Xword size;
|
Elf_Xword size = 0;
|
||||||
unsigned char bind;
|
unsigned char bind = 0;
|
||||||
unsigned char type;
|
unsigned char type = 0;
|
||||||
Elf_Half section;
|
Elf_Half section = 0;
|
||||||
unsigned char other;
|
unsigned char other = 0;
|
||||||
symbols.get_symbol( i, name, value, size, bind, type, section, other );
|
symbols.get_symbol( i, name, value, size, bind, type, section, other );
|
||||||
symbol_table( out, i, name, value, size, bind, type, section, reader.get_class() );
|
symbol_table( out, i, name, value, size, bind, type, section, reader.get_class() );
|
||||||
}
|
}
|
||||||
@ -728,8 +728,8 @@ class dump
|
|||||||
out << "Dynamic section (" << sec->get_name() << ")" << std::endl;
|
out << "Dynamic section (" << sec->get_name() << ")" << std::endl;
|
||||||
out << "[ Nr ] Tag Name/Value" << std::endl;
|
out << "[ Nr ] Tag Name/Value" << std::endl;
|
||||||
for ( Elf_Xword i = 0; i < dyn_no; ++i ) {
|
for ( Elf_Xword i = 0; i < dyn_no; ++i ) {
|
||||||
Elf_Xword tag;
|
Elf_Xword tag = 0;
|
||||||
Elf_Xword value;
|
Elf_Xword value = 0;
|
||||||
std::string str;
|
std::string str;
|
||||||
dynamic.get_entry( i, tag, value, str );
|
dynamic.get_entry( i, tag, value, str );
|
||||||
dynamic_tag( out, i, tag, value, str, reader.get_class() );
|
dynamic_tag( out, i, tag, value, str, reader.get_class() );
|
||||||
|
Loading…
Reference in New Issue
Block a user