mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
lib/Object: Suppress warnings on gcc-4.3.4 cygwin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141485 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
017449d64b
commit
48f248ad5f
@ -146,7 +146,7 @@ Archive::Archive(MemoryBuffer *source, error_code &ec)
|
|||||||
// Get the string table. It's the 3rd member.
|
// Get the string table. It's the 3rd member.
|
||||||
child_iterator StrTable = begin_children();
|
child_iterator StrTable = begin_children();
|
||||||
child_iterator e = end_children();
|
child_iterator e = end_children();
|
||||||
for (int i = 0; StrTable != e && i < 2; ++StrTable, ++i);
|
for (int i = 0; StrTable != e && i < 2; ++StrTable, ++i) {}
|
||||||
|
|
||||||
// Check to see if there were 3 members, or the 3rd member wasn't named "//".
|
// Check to see if there were 3 members, or the 3rd member wasn't named "//".
|
||||||
StringRef name;
|
StringRef name;
|
||||||
|
@ -640,7 +640,7 @@ error_code COFFObjectFile::getRelocationAdditionalInfo(DataRefImpl Rel,
|
|||||||
error_code COFFObjectFile::getRelocationValueString(DataRefImpl Rel,
|
error_code COFFObjectFile::getRelocationValueString(DataRefImpl Rel,
|
||||||
SmallVectorImpl<char> &Result) const {
|
SmallVectorImpl<char> &Result) const {
|
||||||
const coff_relocation *reloc = toRel(Rel);
|
const coff_relocation *reloc = toRel(Rel);
|
||||||
const coff_symbol *symb;
|
const coff_symbol *symb = 0;
|
||||||
if (error_code ec = getSymbol(reloc->SymbolTableIndex, symb)) return ec;
|
if (error_code ec = getSymbol(reloc->SymbolTableIndex, symb)) return ec;
|
||||||
DataRefImpl sym;
|
DataRefImpl sym;
|
||||||
::memset(&sym, 0, sizeof(sym));
|
::memset(&sym, 0, sizeof(sym));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user