Add clang warnings.

This commit is contained in:
levlam 2024-08-08 19:38:51 +03:00
parent 42d07bd074
commit c4f8f04482
2 changed files with 4 additions and 2 deletions

View File

@ -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")

View File

@ -419,14 +419,14 @@ static ActorOwn<> get_full_config(DcOption option, Promise<tl_object_ptr<telegra
DcId dc_id_;
std::shared_ptr<mtproto::PublicRsaKeyInterface> public_rsa_key_;
vector<unique_ptr<Listener>> 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();
}