diff options
author | John Wiegley <johnw@newartisans.com> | 2008-07-30 05:12:46 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-07-30 05:12:46 -0400 |
commit | 2aff35215fbe24459aa4057d5b31ea7490046ca6 (patch) | |
tree | 6a79a3d84e352e3b3647484b0daf38b1ae6aa81f /walk.cc | |
parent | 230d7fd6027d05422f4bb26e9bfb3758a9cb16ea (diff) | |
download | ledger-2aff35215fbe24459aa4057d5b31ea7490046ca6.tar.gz ledger-2aff35215fbe24459aa4057d5b31ea7490046ca6.tar.bz2 ledger-2aff35215fbe24459aa4057d5b31ea7490046ca6.zip |
Enabled a huge number of warning flags for g++ in acprep, and fixed them all
except for several unused parameter warnings (because there is so much code
still #if 0'd out), and one implicit conversion from long long to long which
still has to be dealt with.
Diffstat (limited to 'walk.cc')
-rw-r--r-- | walk.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -44,7 +44,7 @@ xact_xdata_t& xact_xdata(const xact_t& xact) { if (! xact.data) xact.data = new xact_xdata_t(); - return *((xact_xdata_t *) xact.data); + return *static_cast<xact_xdata_t *>(xact.data); } void add_xact_to(const xact_t& xact, value_t& value) @@ -887,7 +887,7 @@ account_xdata_t& account_xdata(const account_t& account) if (! account.data) account.data = new account_xdata_t(); - return *((account_xdata_t *) account.data); + return *static_cast<account_xdata_t *>(account.data); } void sum_accounts(account_t& account) |