Skip to content

Commit

Permalink
Allow [[deprecated]] attribute (#3033)
Browse files Browse the repository at this point in the history
  • Loading branch information
wezrule authored Nov 3, 2020
1 parent 36dc2e4 commit 2bca6e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ if (WIN32)

else ()
if (NANO_WARN_TO_ERR)
add_compile_options(-Werror)
add_compile_options(-Werror -Wno-deprecated-declarations)
endif ()

if ((${USING_TSAN} AND ${USING_ASAN}) OR
Expand Down
2 changes: 1 addition & 1 deletion nano/node/nodeconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ nano::error nano::node_config::deserialize_toml (nano::tomlconfig & toml)
auto lmdb_config_l (toml.get_required_child ("lmdb"));
lmdb_config.deserialize_toml (lmdb_config_l, is_deprecated_lmdb_dbs_used);

// Note that the lmdb config fails is both the deprecated and new setting are changed.
// Note that the lmdb config fails if both the deprecated and new setting are changed.
if (is_deprecated_lmdb_dbs_used)
{
lmdb_config.max_databases = deprecated_lmdb_max_dbs;
Expand Down
2 changes: 1 addition & 1 deletion nano/node/nodeconfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class node_config
std::string callback_address;
uint16_t callback_port{ 0 };
std::string callback_target;
int deprecated_lmdb_max_dbs{ 128 };
[[deprecated]] int deprecated_lmdb_max_dbs{ 128 };
bool allow_local_peers{ !(network_params.network.is_live_network () || network_params.network.is_test_network ()) }; // disable by default for live network
nano::stat_config stat_config;
nano::ipc::ipc_config ipc_config;
Expand Down

0 comments on commit 2bca6e9

Please sign in to comment.