Supress C4366 in intif_parse_GuildInfo as the error is happening because of a packet structure

Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
This commit is contained in:
Ibrahim Zidan 2026-07-10 01:15:31 +03:00
parent 84407e167a
commit ee1e8b7bd0
No known key found for this signature in database
GPG key ID: 0F0A43C7FE4C7B9A

View file

@ -1345,6 +1345,10 @@ static void intif_parse_GuildInfo(int fd)
if (p->packetLength != sizeof(struct PACKET_CHARMAP_GUILD_INFO))
ShowError("intif: guild info: data size mismatch - Gid: %d recv size: %d Expected size: %"PRIuS"\n",
p->g.guild_id, p->packetLength, sizeof(struct PACKET_CHARMAP_GUILD_INFO));
#ifdef _MSC_VER
#pragma warning (push)
#pragma warning (disable: 4366)
#endif
if (intif->emblem_tmp_done == false ||
intif->emblem_tmp_guild_id != p->g.guild_id ||
intif->emblem_tmp_emblem_id != p->g.emblem_id) {
@ -1352,6 +1356,9 @@ static void intif_parse_GuildInfo(int fd)
} else {
guild->recv_info(&p->g, &intif->emblem_tmp);
}
#ifdef _MSC_VER
#pragma warning (pop)
#endif
intif->emblem_tmp_done = false;
intif->emblem_tmp_guild_id = 0;
intif->emblem_tmp_emblem_id = 0;