[llvm-commits] [llvm] r141485 - in /llvm/trunk/lib/Object: Archive.cpp COFFObjectFile.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Sat Oct 8 04:22:53 PDT 2011
Author: chapuni
Date: Sat Oct 8 06:22:53 2011
New Revision: 141485
URL: http://llvm.org/viewvc/llvm-project?rev=141485&view=rev
Log:
lib/Object: Suppress warnings on gcc-4.3.4 cygwin
Modified:
llvm/trunk/lib/Object/Archive.cpp
llvm/trunk/lib/Object/COFFObjectFile.cpp
Modified: llvm/trunk/lib/Object/Archive.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/Archive.cpp?rev=141485&r1=141484&r2=141485&view=diff
==============================================================================
--- llvm/trunk/lib/Object/Archive.cpp (original)
+++ llvm/trunk/lib/Object/Archive.cpp Sat Oct 8 06:22:53 2011
@@ -146,7 +146,7 @@
// 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;
Modified: llvm/trunk/lib/Object/COFFObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/COFFObjectFile.cpp?rev=141485&r1=141484&r2=141485&view=diff
==============================================================================
--- llvm/trunk/lib/Object/COFFObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/COFFObjectFile.cpp Sat Oct 8 06:22:53 2011
@@ -640,7 +640,7 @@
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));
More information about the llvm-commits
mailing list