From 10108ac9f0f0c7dff937cd06e2767649cb220e2d Mon Sep 17 00:00:00 2001 From: Matt Witherspoon <32485495+spoonincode@users.noreply.github.com> Date: Sun, 30 Sep 2018 12:33:23 -0400 Subject: [PATCH] ifdef out unused LOCKING variables to squelch warnings --- include/chainbase/chainbase.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/chainbase/chainbase.hpp b/include/chainbase/chainbase.hpp index ebb1fdca843..7ce93bc5cd7 100644 --- a/include/chainbase/chainbase.hpp +++ b/include/chainbase/chainbase.hpp @@ -1037,9 +1037,11 @@ namespace chainbase { bfs::path _data_dir; +#ifdef CHAINBASE_CHECK_LOCKING int32_t _read_lock_count = 0; int32_t _write_lock_count = 0; bool _enable_require_locking = false; +#endif void _msync_database(); };