summaryrefslogtreecommitdiff
path: root/odb/odb/relational/source.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/odb/relational/source.cxx')
-rw-r--r--odb/odb/relational/source.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/odb/odb/relational/source.cxx b/odb/odb/relational/source.cxx
index e00626a..abc0a46 100644
--- a/odb/odb/relational/source.cxx
+++ b/odb/odb/relational/source.cxx
@@ -4383,6 +4383,7 @@ traverse_object (type& c)
<< endl;
os << db << "::transaction& tr (" << db << "::transaction::current ());"
+ << "ODB_POTENTIALLY_UNUSED (tr);"
<< endl
<< "// The connection used by the current transaction and the" << endl
<< "// one used to prepare this statement must be the same." << endl
@@ -5683,6 +5684,7 @@ traverse_view (type& c)
<< endl;
os << db << "::transaction& tr (" << db << "::transaction::current ());"
+ << "ODB_POTENTIALLY_UNUSED (tr);"
<< endl
<< "// The connection used by the current transaction and the" << endl
<< "// one used to prepare this statement must be the same." << endl