Allow [[deprecated]] attribute (#3033)
This commit is contained in:
parent
36dc2e4cde
commit
2bca6e9ff6
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -73,7 +73,7 @@ public:
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue