llvm.org GIT mirror llvm / 48f248a
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 NAKAMURA Takumi 8 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
145145 // Get the string table. It's the 3rd member.
146146 child_iterator StrTable = begin_children();
147147 child_iterator e = end_children();
148 for (int i = 0; StrTable != e && i < 2; ++StrTable, ++i);
148 for (int i = 0; StrTable != e && i < 2; ++StrTable, ++i) {}
149149
150150 // Check to see if there were 3 members, or the 3rd member wasn't named "//".
151151 StringRef name;
639639 error_code COFFObjectFile::getRelocationValueString(DataRefImpl Rel,
640640 SmallVectorImpl &Result) const {
641641 const coff_relocation *reloc = toRel(Rel);
642 const coff_symbol *symb;
642 const coff_symbol *symb = 0;
643643 if (error_code ec = getSymbol(reloc->SymbolTableIndex, symb)) return ec;
644644 DataRefImpl sym;
645645 ::memset(&sym, 0, sizeof(sym));