Skip to content

Commit

Permalink
Silence g++ warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Dec 1, 2021
1 parent aa9f63a commit a6c0902
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion td/mtproto/PacketInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
2 changes: 1 addition & 1 deletion td/mtproto/TcpTransport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion td/telegram/files/FileUploader.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class FileUploader final : public FileLoader {
FileType file_type_ = FileType::Temp;

std::vector<UInt256> iv_map_;
UInt256 iv_{};
UInt256 iv_;
string generate_iv_;
int64 generate_offset_ = 0;
int64 next_offset_ = 0;
Expand Down
2 changes: 1 addition & 1 deletion tddb/td/db/binlog/Binlog.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a6c0902

Please sign in to comment.