From 326709e3e46f4a00d0773654513d323193a43faa Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 9 Oct 2019 12:10:07 +0300 Subject: Add workaround for 'private field is not used' Clang warning --- odb/mssql/buildfile | 2 +- odb/mssql/statement-cache.hxx | 2 +- 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 object_traits_impl::statements_type& -- cgit v1.1