From 2a72c5c8384d23cad054058ba0066ef5b163694e Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 3 Aug 2012 11:53:11 +0000 Subject: Fixed a few gcc pedantic warnings; made BLOCKTYPE an unsigned char type. git-svn-id: http://mc-server.googlecode.com/svn/trunk@711 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/packets/cPacket.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/packets/cPacket.h') diff --git a/source/packets/cPacket.h b/source/packets/cPacket.h index f5a014ed5..1c0b24868 100644 --- a/source/packets/cPacket.h +++ b/source/packets/cPacket.h @@ -41,6 +41,8 @@ public: /// Called to parse the packet. Packet type has already been read and the correct packet type created. Return the number of characters processed, PACKET_INCOMPLETE for incomplete data, PACKET_ERROR for error virtual int Parse(const char * a_Data, int a_Size) { + UNUSED(a_Data); + UNUSED(a_Size); LOGERROR("Undefined Parse function for packet type 0x%x\n", m_PacketID ); ASSERT(!"Undefined Parse function"); return -1; @@ -49,6 +51,7 @@ public: /// Called to serialize the packet into a string. Append all packet data to a_Data, including the packet type! virtual void Serialize(AString & a_Data) const { + UNUSED(a_Data); LOGERROR("Undefined Serialize function for packet type 0x%x\n", m_PacketID ); ASSERT(!"Undefined Serialize function"); } -- cgit v1.2.3