From 118e2ae865bd7a0020586ef72d05bf14d66f4eae Mon Sep 17 00:00:00 2001 From: Sfan5 Date: Tue, 15 Apr 2014 19:49:32 +0200 Subject: Fix all warnings reported by clang --- src/connection.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/connection.cpp') diff --git a/src/connection.cpp b/src/connection.cpp index c77ee7f4d..32634ac89 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -212,7 +212,7 @@ SharedBuffer makeReliablePacket( ReliablePacketBuffer */ -ReliablePacketBuffer::ReliablePacketBuffer(): m_list_size(0),writeptr(0) {} +ReliablePacketBuffer::ReliablePacketBuffer(): m_list_size(0) {} void ReliablePacketBuffer::print() { @@ -1941,8 +1941,7 @@ void ConnectionSendThread::sendAsPacket(u16 peer_id, u8 channelnum, ConnectionReceiveThread::ConnectionReceiveThread(Connection* parent, unsigned int max_packet_size) : - m_connection(parent), - m_max_packet_size(max_packet_size) + m_connection(parent) { } -- cgit v1.2.3