aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-10-09 12:10:07 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-10-09 14:18:02 +0300
commit326709e3e46f4a00d0773654513d323193a43faa (patch)
tree517df65d12bf76eb6ebcb730c9f0aa3e22985f3b
parent1ef2900d3bfa04a50965ab5d26f66631f4d46b27 (diff)
Add workaround for 'private field is not used' Clang warning
-rw-r--r--odb/mssql/buildfile2
-rw-r--r--odb/mssql/statement-cache.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/odb/mssql/buildfile b/odb/mssql/buildfile
index 28c4b8f..8475455 100644
--- a/odb/mssql/buildfile
+++ b/odb/mssql/buildfile
@@ -110,7 +110,7 @@ details/build2/
{
h{*}: install = false
- if ($cxx.class == 'msvc')
+ if ($cxx.target.system == 'win32-msvc')
{
h{config-vc}@./: install = $install_include/details/
h{config-vc-stub}@./: install = $install_include/details/build2/config-vc.h
diff --git a/odb/mssql/statement-cache.hxx b/odb/mssql/statement-cache.hxx
index 69325c5..2bc0b11 100644
--- a/odb/mssql/statement-cache.hxx
+++ b/odb/mssql/statement-cache.hxx
@@ -31,7 +31,7 @@ namespace odb
public:
statement_cache (connection& conn)
: conn_ (conn),
- version_seq_ (conn.database ().schema_version_sequence ()) {}
+ version_seq_ (conn_.database ().schema_version_sequence ()) {}
template <typename T>
typename object_traits_impl<T, id_mssql>::statements_type&