Skip to content

Commit

Permalink
Add clang warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Aug 8, 2024
1 parent 42d07bd commit c4f8f04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CMake/TdSetUpCompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
4 changes: 2 additions & 2 deletions td/telegram/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit c4f8f04

Please sign in to comment.