From e0b5605dccacc2f790d1db24677a63c34fef3212 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 31 Oct 2009 05:19:19 -0400 Subject: Fixed an unused variable warning --- src/archive.cc | 4 ++++ 1 file changed, 4 insertions(+) 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) 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); -- cgit v1.2.3