Add clang warnings.
This commit is contained in:
parent
42d07bd074
commit
c4f8f04482
@ -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")
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user