diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-31 05:19:19 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-31 05:19:19 -0400 |
commit | e0b5605dccacc2f790d1db24677a63c34fef3212 (patch) | |
tree | b848bd5eaf9fbfe84aabbff8756827fcea35a0d2 /src | |
parent | 0b5978ae3c00070036ec1987b0724994048730a3 (diff) | |
download | fork-ledger-e0b5605dccacc2f790d1db24677a63c34fef3212.tar.gz fork-ledger-e0b5605dccacc2f790d1db24677a63c34fef3212.tar.bz2 fork-ledger-e0b5605dccacc2f790d1db24677a63c34fef3212.zip |
Fixed an unused variable warning
Diffstat (limited to 'src')
-rw-r--r-- | src/archive.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/archive.cc b/src/archive.cc index d631651f..a37bad90 100644 --- a/src/archive.cc +++ b/src/archive.cc @@ -77,8 +77,10 @@ void archive_t::read_header() "Version number: " << std::hex << version << std::dec); DEBUG("archive.journal", "Number of sources: " << sources.size()); +#if defined(DEBUG_ON) foreach (const journal_t::fileinfo_t& i, sources) DEBUG("archive.journal", "Loaded source: " << *i.filename); +#endif } } @@ -209,8 +211,10 @@ void archive_t::save(shared_ptr<journal_t> journal) version = ARCHIVE_VERSION; sources = journal->sources; +#if defined(DEBUG_ON) foreach (const journal_t::fileinfo_t& i, sources) DEBUG("archive.journal", "Saving source: " << *i.filename); +#endif DEBUG("archive.journal", "Creating archive with version " << std::hex << version << std::dec); |