From a6c0902ad743272b4cdb5d064ab639d8c6f4d629 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 1 Dec 2021 16:01:27 +0300 Subject: [PATCH] Silence g++ warnings. --- td/mtproto/PacketInfo.h | 2 +- td/mtproto/TcpTransport.h | 2 +- td/telegram/files/FileUploader.h | 2 +- tddb/td/db/binlog/Binlog.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/td/mtproto/PacketInfo.h b/td/mtproto/PacketInfo.h index a6907eee3..4407101f1 100644 --- a/td/mtproto/PacketInfo.h +++ b/td/mtproto/PacketInfo.h @@ -16,7 +16,7 @@ struct PacketInfo { enum { Common, EndToEnd } type = Common; uint64 auth_key_id{0}; uint32 message_ack{0}; - UInt128 message_key{}; + UInt128 message_key; uint64 salt{0}; uint64 session_id{0}; diff --git a/td/mtproto/TcpTransport.h b/td/mtproto/TcpTransport.h index d2fbc3e01..9e392ae7f 100644 --- a/td/mtproto/TcpTransport.h +++ b/td/mtproto/TcpTransport.h @@ -193,7 +193,7 @@ class ObfuscatedTransport final : public IStreamTransport { // TODO: use ByteFlow? // One problem is that BufferedFd owns output_buffer_ // The other problem is that first 56 bytes must be sent unencrypted. - UInt256 output_key_{}; + UInt256 output_key_; AesCtrState output_state_; ChainBufferWriter *output_ = nullptr; diff --git a/td/telegram/files/FileUploader.h b/td/telegram/files/FileUploader.h index 4b7daa463..dae468239 100644 --- a/td/telegram/files/FileUploader.h +++ b/td/telegram/files/FileUploader.h @@ -47,7 +47,7 @@ class FileUploader final : public FileLoader { FileType file_type_ = FileType::Temp; std::vector iv_map_; - UInt256 iv_{}; + UInt256 iv_; string generate_iv_; int64 generate_offset_ = 0; int64 next_offset_ = 0; diff --git a/tddb/td/db/binlog/Binlog.h b/tddb/td/db/binlog/Binlog.h index b3018722b..1cc50c13e 100644 --- a/tddb/td/db/binlog/Binlog.h +++ b/tddb/td/db/binlog/Binlog.h @@ -134,7 +134,7 @@ class Binlog { // AesCtrEncryption BufferSlice aes_ctr_key_salt_; - UInt256 aes_ctr_key_{}; + UInt256 aes_ctr_key_; AesCtrState aes_ctr_state_; bool byte_flow_flag_ = false;