diff options
author | John Wiegley <johnw@newartisans.com> | 2009-03-04 04:31:34 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-03-04 04:31:34 -0400 |
commit | 9d4e888ef57ef70acb22830c5bfb5e917208113e (patch) | |
tree | b82484469989cfa6f546d1827dfd382b3de8dfe1 /src/item.cc | |
parent | 2d63c9364af57c732003afc7adddeb8ce62a1988 (diff) | |
download | fork-ledger-9d4e888ef57ef70acb22830c5bfb5e917208113e.tar.gz fork-ledger-9d4e888ef57ef70acb22830c5bfb5e917208113e.tar.bz2 fork-ledger-9d4e888ef57ef70acb22830c5bfb5e917208113e.zip |
Cured several harmless compiler warnings
Diffstat (limited to 'src/item.cc')
-rw-r--r-- | src/item.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/item.cc b/src/item.cc index 426a2f1c..032a84cf 100644 --- a/src/item.cc +++ b/src/item.cc @@ -43,12 +43,14 @@ bool item_t::has_tag(const string& tag) const return false; } string_map::const_iterator i = metadata->find(tag); +#if defined(DEBUG_ON) if (SHOW_DEBUG("item.meta")) { if (i == metadata->end()) DEBUG("item.meta", "Item does not have this tag"); else DEBUG("item.meta", "Item has the tag!"); } +#endif return i != metadata->end(); } |