Fix warnings.

GitOrigin-RevId: 25c5aaaf29fd1284427f354291a6e664847413ea
This commit is contained in:
levlam 2020-03-20 17:32:58 +03:00
parent 05253ca35e
commit 2f850bc834
2 changed files with 4 additions and 1 deletions

View File

@ -3536,6 +3536,9 @@ void ContactsManager::ChannelFull::parse(ParserT &parser) {
if (has_stats_dc_id) {
stats_dc_id = DcId::create(parser.fetch_int());
}
if (legacy_can_view_statistics) {
LOG(DEBUG) << "Ignore legacy can view statistics flag";
}
}
template <class StorerT>

View File

@ -31,7 +31,7 @@ static void test_gzencode(td::string s) {
auto r = td::gzencode(s, td::max(2, static_cast<int>(100 / s.size())));
ASSERT_TRUE(!r.empty());
LOG(INFO) << "Encoded string of size " << s.size() << " in " << (td::Time::now() - begin_time)
<< " with compression ratio " << r.size() * 1.0 / s.size();
<< " with compression ratio " << static_cast<double>(r.size()) / static_cast<double>(s.size());
}
TEST(Gzip, gzencode) {