summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2017-10-16 19:39:53 +0200
committerpeterbell10 <peterbell10@live.co.uk>2017-10-16 19:39:53 +0200
commit05e7be7f738356005700bacecb674db3a70c4656 (patch)
treeef637757fa2abf55bcb06df46c8de8ef6dcd123f
parentFixed 2 small warnings (#4055) (diff)
downloadcuberite-05e7be7f738356005700bacecb674db3a70c4656.tar
cuberite-05e7be7f738356005700bacecb674db3a70c4656.tar.gz
cuberite-05e7be7f738356005700bacecb674db3a70c4656.tar.bz2
cuberite-05e7be7f738356005700bacecb674db3a70c4656.tar.lz
cuberite-05e7be7f738356005700bacecb674db3a70c4656.tar.xz
cuberite-05e7be7f738356005700bacecb674db3a70c4656.tar.zst
cuberite-05e7be7f738356005700bacecb674db3a70c4656.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/PacketID.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Protocol/PacketID.cpp b/src/Protocol/PacketID.cpp
index 6bb8379dd..f401f856e 100644
--- a/src/Protocol/PacketID.cpp
+++ b/src/Protocol/PacketID.cpp
@@ -79,8 +79,11 @@ UInt32 cProtocol_1_9_0::GetPacketId(eOutgoingPackets a_Packet)
case sendWindowOpen: return 0x13;
case sendWindowProperty: return 0x15;
}
- LOGWARNING("Retrieving packet ID for unknown packet type %d!", a_Packet);
- return 0;
+ ASSERT(!"Retrieving packet ID for unknown packet type");
+ #ifndef __clang__
+ LOGWARNING("Retrieving packet ID for unknown packet type %d!", a_Packet);
+ return 0;
+ #endif
}