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 /reconcile.cc | |
parent | 230d7fd6027d05422f4bb26e9bfb3758a9cb16ea (diff) | |
download | fork-ledger-2aff35215fbe24459aa4057d5b31ea7490046ca6.tar.gz fork-ledger-2aff35215fbe24459aa4057d5b31ea7490046ca6.tar.bz2 fork-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 'reconcile.cc')
-rw-r--r-- | reconcile.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/reconcile.cc b/reconcile.cc index 5d979251..d83eb37a 100644 --- a/reconcile.cc +++ b/reconcile.cc @@ -3,8 +3,8 @@ namespace ledger { -#define xact_next(x) ((xact_t *)xact_xdata(*x).ptr) -#define xact_next_ptr(x) ((xact_t **)&xact_xdata(*x).ptr) +#define xact_next(x) reinterpret_cast<xact_t *>(xact_xdata(*x).ptr) +#define xact_next_ptr(x) reinterpret_cast<xact_t **>(&xact_xdata(*x).ptr) static bool search_for_balance(amount_t& amount, xact_t ** prev, xact_t * next) |