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. --- walk.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'walk.h') diff --git a/walk.h b/walk.h index 4f895786..176a34bf 100644 --- a/walk.h +++ b/walk.h @@ -145,7 +145,7 @@ inline bool xact_has_xdata(const xact_t& xact) { } inline xact_xdata_t& xact_xdata_(const xact_t& xact) { - return *((xact_xdata_t *) xact.data); + return *static_cast(xact.data); } xact_xdata_t& xact_xdata(const xact_t& xact); @@ -264,7 +264,7 @@ public: class ignore_xacts : public item_handler { public: - virtual void operator()(xact_t& xact) {} + virtual void operator()(xact_t&) {} }; class clear_xact_xdata : public item_handler @@ -272,7 +272,7 @@ class clear_xact_xdata : public item_handler public: virtual void operator()(xact_t& xact) { if (xact.data) { - checked_delete((xact_xdata_t *) xact.data); + checked_delete(static_cast(xact.data)); xact.data = NULL; } } @@ -939,7 +939,7 @@ inline bool account_has_xdata(const account_t& account) { } inline account_xdata_t& account_xdata_(const account_t& account) { - return *((account_xdata_t *) account.data); + return *static_cast(account.data); } account_xdata_t& account_xdata(const account_t& account); @@ -1019,7 +1019,7 @@ class clear_account_xdata : public item_handler public: virtual void operator()(account_t& acct) { if (acct.data) { - checked_delete((account_xdata_t *) acct.data); + checked_delete(static_cast(acct.data)); acct.data = NULL; } } -- cgit v1.2.3