summaryrefslogtreecommitdiff
path: root/walk.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-30 05:12:46 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-30 05:12:46 -0400
commit2aff35215fbe24459aa4057d5b31ea7490046ca6 (patch)
tree6a79a3d84e352e3b3647484b0daf38b1ae6aa81f /walk.h
parent230d7fd6027d05422f4bb26e9bfb3758a9cb16ea (diff)
downloadfork-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 'walk.h')
-rw-r--r--walk.h10
1 files changed, 5 insertions, 5 deletions
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_xdata_t *>(xact.data);
}
xact_xdata_t& xact_xdata(const xact_t& xact);
@@ -264,7 +264,7 @@ public:
class ignore_xacts : public item_handler<xact_t>
{
public:
- virtual void operator()(xact_t& xact) {}
+ virtual void operator()(xact_t&) {}
};
class clear_xact_xdata : public item_handler<xact_t>
@@ -272,7 +272,7 @@ class clear_xact_xdata : public item_handler<xact_t>
public:
virtual void operator()(xact_t& xact) {
if (xact.data) {
- checked_delete((xact_xdata_t *) xact.data);
+ checked_delete(static_cast<xact_xdata_t *>(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_xdata_t *>(account.data);
}
account_xdata_t& account_xdata(const account_t& account);
@@ -1019,7 +1019,7 @@ class clear_account_xdata : public item_handler<account_t>
public:
virtual void operator()(account_t& acct) {
if (acct.data) {
- checked_delete((account_xdata_t *) acct.data);
+ checked_delete(static_cast<account_xdata_t *>(acct.data));
acct.data = NULL;
}
}