diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-10-08 11:22:53 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-10-08 11:22:53 +0000 |
commit | 48f248ad5f9e435f3aeaa3aa9bca890687085540 (patch) | |
tree | fbcfff5bcdb42770a6458ad5f74acadfc8e488d8 /lib/Object | |
parent | 017449d64b8920eb926e9e752e22d2f5921a6237 (diff) |
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
Diffstat (limited to 'lib/Object')
-rw-r--r-- | lib/Object/Archive.cpp | 2 | ||||
-rw-r--r-- | lib/Object/COFFObjectFile.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Object/Archive.cpp b/lib/Object/Archive.cpp index aeb629b7f2..e2eaff53c1 100644 --- a/lib/Object/Archive.cpp +++ b/lib/Object/Archive.cpp @@ -146,7 +146,7 @@ Archive::Archive(MemoryBuffer *source, error_code &ec) // Get the string table. It's the 3rd member. child_iterator StrTable = begin_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 "//". StringRef name; diff --git a/lib/Object/COFFObjectFile.cpp b/lib/Object/COFFObjectFile.cpp index ea9f44bab4..91492db2f0 100644 --- a/lib/Object/COFFObjectFile.cpp +++ b/lib/Object/COFFObjectFile.cpp @@ -640,7 +640,7 @@ error_code COFFObjectFile::getRelocationAdditionalInfo(DataRefImpl Rel, error_code COFFObjectFile::getRelocationValueString(DataRefImpl Rel, SmallVectorImpl<char> &Result) const { 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; DataRefImpl sym; ::memset(&sym, 0, sizeof(sym)); |