summaryrefslogtreecommitdiff
path: root/src/report.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-11 05:08:55 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-11 05:08:55 -0500
commit62c04deb8719444d1f958d40fe6442b714bb7e50 (patch)
tree296c3e1742bbafc10d6cd9f67585a2ba68e5c3d2 /src/report.cc
parent020de80f6012bb323f11da77e0ca3c8841999491 (diff)
downloadfork-ledger-62c04deb8719444d1f958d40fe6442b714bb7e50.tar.gz
fork-ledger-62c04deb8719444d1f958d40fe6442b714bb7e50.tar.bz2
fork-ledger-62c04deb8719444d1f958d40fe6442b714bb7e50.zip
Quieted several compiler warnings from Clang
Diffstat (limited to 'src/report.cc')
-rw-r--r--src/report.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/report.cc b/src/report.cc
index 3151b211..1adbe9d0 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -195,7 +195,8 @@ void report_t::normalize_options(const string& verb)
long date_width = (HANDLED(date_width_) ?
lexical_cast<long>(HANDLER(date_width_).str()) :
- format_date(CURRENT_DATE(),FMT_PRINTED).length());
+ static_cast<long>
+ (format_date(CURRENT_DATE(),FMT_PRINTED).length()));
long payee_width = (HANDLED(payee_width_) ?
lexical_cast<long>(HANDLER(payee_width_).str()) :
long(double(cols) * 0.263157));
@@ -825,6 +826,7 @@ value_t report_t::fn_nail_down(call_scope_t& args)
throw_(std::runtime_error, _("Attempting to nail down %1")
<< args[0].label());
}
+ return arg0;
}
value_t report_t::fn_lot_date(call_scope_t& args)