summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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
}