From 2aff35215fbe24459aa4057d5b31ea7490046ca6 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 30 Jul 2008 05:12:46 -0400 Subject: 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. --- reconcile.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'reconcile.cc') 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_xdata(*x).ptr) +#define xact_next_ptr(x) reinterpret_cast(&xact_xdata(*x).ptr) static bool search_for_balance(amount_t& amount, xact_t ** prev, xact_t * next) -- cgit v1.2.3