summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-11 07:20:49 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:42 -0400
commit48b46a23b183fc576f7e999a166d1e130233032c (patch)
tree5d3b645149d473a2638431450e73efcc0905e921 /src/value.cc
parent8e20c378d6ee6eb36f8c6866f8c9ec52f8600c58 (diff)
downloadfork-ledger-48b46a23b183fc576f7e999a166d1e130233032c.tar.gz
fork-ledger-48b46a23b183fc576f7e999a166d1e130233032c.tar.bz2
fork-ledger-48b46a23b183fc576f7e999a166d1e130233032c.zip
Disabled compiler warnings from icc.
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/value.cc b/src/value.cc
index 6623e1a1..63719266 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -392,6 +392,7 @@ value_t& value_t::operator+=(const value_t& val)
throw_(value_error,
"Cannot add " << label() << " to " << val.label());
+ return *this;
}
value_t& value_t::operator-=(const value_t& val)
@@ -541,6 +542,7 @@ value_t& value_t::operator-=(const value_t& val)
throw_(value_error,
"Cannot subtract " << label() << " from " << val.label());
+ return *this;
}
value_t& value_t::operator*=(const value_t& val)
@@ -626,6 +628,7 @@ value_t& value_t::operator*=(const value_t& val)
throw_(value_error,
"Cannot multiply " << label() << " with " << val.label());
+ return *this;
}
value_t& value_t::operator/=(const value_t& val)
@@ -695,6 +698,7 @@ value_t& value_t::operator/=(const value_t& val)
throw_(value_error,
"Cannot divide " << label() << " by " << val.label());
+ return *this;
}
@@ -1228,6 +1232,7 @@ value_t value_t::value(const optional<moment_t>& moment) const
}
throw_(value_error, "Cannot find the value of " << label());
+ return value_t();
}
void value_t::in_place_reduce()
@@ -1269,6 +1274,7 @@ value_t value_t::round() const
}
throw_(value_error, "Cannot round " << label());
+ return value_t();
}
value_t value_t::unround() const