From 52f71a60d6b683a283b0b5ef3a64e29a50f61a57 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 --- odb/tracer.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/odb/tracer.cxx b/odb/tracer.cxx index aa33822..03cabec 100644 --- a/odb/tracer.cxx +++ b/odb/tracer.cxx @@ -45,6 +45,11 @@ namespace odb { virtual void execute (connection&, const char* statement); + + // Override the other version to get rid of a Sun CC warning. + // + virtual void + execute (connection&, const statement&); }; void stderr_tracer_type:: @@ -53,6 +58,12 @@ namespace odb cerr << s << endl; } + void stderr_tracer_type:: + execute (connection& c, const statement& s) + { + execute (c, s.text ()); + } + static stderr_tracer_type stderr_tracer_; tracer& stderr_tracer = stderr_tracer_; } -- cgit v1.1