diff options
author | Devang Patel <dpatel@apple.com> | 2008-11-21 20:00:59 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-11-21 20:00:59 +0000 |
commit | 59500c8f9a76b3386329b6f837255c16f4e8b61b (patch) | |
tree | 6bad7385b65142eb5806cdeafcc6ea5f121cab35 /lib/Archive | |
parent | a5c05aad57556eee4cea43f33234312320a0a219 (diff) | |
download | llvm-59500c8f9a76b3386329b6f837255c16f4e8b61b.tar.gz llvm-59500c8f9a76b3386329b6f837255c16f4e8b61b.tar.bz2 llvm-59500c8f9a76b3386329b6f837255c16f4e8b61b.tar.xz |
Silence unused variable warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59841 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Archive')
-rw-r--r-- | lib/Archive/ArchiveWriter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Archive/ArchiveWriter.cpp b/lib/Archive/ArchiveWriter.cpp index 2269464c6c..336a2bdc65 100644 --- a/lib/Archive/ArchiveWriter.cpp +++ b/lib/Archive/ArchiveWriter.cpp @@ -306,8 +306,10 @@ Archive::writeSymbolTable(std::ofstream& ARFile) { // Write the header ARFile.write((char*)&Hdr, sizeof(Hdr)); +#ifndef NDEBUG // Save the starting position of the symbol tables data content. unsigned startpos = ARFile.tellp(); +#endif // Write out the symbols sequentially for ( Archive::SymTabType::iterator I = symTab.begin(), E = symTab.end(); @@ -321,8 +323,10 @@ Archive::writeSymbolTable(std::ofstream& ARFile) { ARFile.write(I->first.data(), I->first.length()); } +#ifndef NDEBUG // Now that we're done with the symbol table, get the ending file position unsigned endpos = ARFile.tellp(); +#endif // Make sure that the amount we wrote is what we pre-computed. This is // critical for file integrity purposes. |