diff --git a/CMake/TdSetUpCompiler.cmake b/CMake/TdSetUpCompiler.cmake index 5bf25775d..747d0aaa7 100644 --- a/CMake/TdSetUpCompiler.cmake +++ b/CMake/TdSetUpCompiler.cmake @@ -127,6 +127,8 @@ function(td_set_up_compiler) add_cxx_compiler_flag("-Wodr") add_cxx_compiler_flag("-flto-odr-type-merging") add_cxx_compiler_flag("-Wno-psabi") + add_cxx_compiler_flag("-Wunused-member-function") + add_cxx_compiler_flag("-Wunused-private-field") # add_cxx_compiler_flag("-Werror") diff --git a/td/telegram/ConfigManager.cpp b/td/telegram/ConfigManager.cpp index e75cb9c23..c74be539d 100644 --- a/td/telegram/ConfigManager.cpp +++ b/td/telegram/ConfigManager.cpp @@ -419,14 +419,14 @@ static ActorOwn<> get_full_config(DcOption option, Promise public_rsa_key_; vector> auth_key_listeners_; - + /* void notify() { td::remove_if(auth_key_listeners_, [&](auto &listener) { CHECK(listener != nullptr); return !listener->notify(); }); } - + */ string auth_key_key() const { return PSTRING() << "config_recovery_auth" << dc_id().get_raw_id(); }