From 7c517014fe1e1b0350b8a1580f6a016fb556c1a6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 6 Dec 2011 13:43:21 +0200 Subject: Override second version of tracer::execute() to suppress Sun CC warning --- common/transaction/driver.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'common/transaction') diff --git a/common/transaction/driver.cxx b/common/transaction/driver.cxx index d868782..00aff29 100644 --- a/common/transaction/driver.cxx +++ b/common/transaction/driver.cxx @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -35,6 +36,14 @@ struct transaction_tracer: odb::tracer else if (str == "ROLLBACK") cout << "rollback transaction" << endl; } + + // Override the other version to get rid of a Sun CC warning. + // + virtual void + execute (connection& c, const statement& s) + { + execute (c, s.text ()); + } }; int -- cgit v1.1