mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
[General] Fix minor warnings found by PVS
This commit is contained in:
parent
6b3b5cdab4
commit
9b6bdf3ae8
9 changed files with 14 additions and 0 deletions
|
@ -306,3 +306,8 @@ endif()
|
||||||
|
|
||||||
# Make the variable accessible for other subdirectories
|
# Make the variable accessible for other subdirectories
|
||||||
set(COMPONENT_FILES ${COMPONENT_FILES} PARENT_SCOPE)
|
set(COMPONENT_FILES ${COMPONENT_FILES} PARENT_SCOPE)
|
||||||
|
|
||||||
|
pvs_studio_add_target(TARGET components.analyze ALL
|
||||||
|
OUTPUT FORMAT errorfile
|
||||||
|
ANALYZE components
|
||||||
|
LOG target_components.err)
|
||||||
|
|
|
@ -13,6 +13,8 @@ using namespace std;
|
||||||
|
|
||||||
PacketMasterAnnounce::PacketMasterAnnounce(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
PacketMasterAnnounce::PacketMasterAnnounce(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
||||||
{
|
{
|
||||||
|
server = nullptr;
|
||||||
|
func = 0;
|
||||||
packetID = ID_MASTER_ANNOUNCE;
|
packetID = ID_MASTER_ANNOUNCE;
|
||||||
orderChannel = CHANNEL_MASTER;
|
orderChannel = CHANNEL_MASTER;
|
||||||
reliability = RELIABLE_ORDERED_WITH_ACK_RECEIPT;
|
reliability = RELIABLE_ORDERED_WITH_ACK_RECEIPT;
|
||||||
|
|
|
@ -15,6 +15,7 @@ using namespace RakNet;
|
||||||
|
|
||||||
PacketMasterQuery::PacketMasterQuery(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
PacketMasterQuery::PacketMasterQuery(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
||||||
{
|
{
|
||||||
|
servers = nullptr;
|
||||||
packetID = ID_MASTER_QUERY;
|
packetID = ID_MASTER_QUERY;
|
||||||
orderChannel = CHANNEL_MASTER;
|
orderChannel = CHANNEL_MASTER;
|
||||||
reliability = RELIABLE_ORDERED_WITH_ACK_RECEIPT;
|
reliability = RELIABLE_ORDERED_WITH_ACK_RECEIPT;
|
||||||
|
|
|
@ -12,6 +12,7 @@ using namespace RakNet;
|
||||||
|
|
||||||
PacketMasterUpdate::PacketMasterUpdate(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
PacketMasterUpdate::PacketMasterUpdate(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
||||||
{
|
{
|
||||||
|
server = nullptr;
|
||||||
packetID = ID_MASTER_UPDATE;
|
packetID = ID_MASTER_UPDATE;
|
||||||
orderChannel = CHANNEL_MASTER;
|
orderChannel = CHANNEL_MASTER;
|
||||||
reliability = RELIABLE_ORDERED_WITH_ACK_RECEIPT;
|
reliability = RELIABLE_ORDERED_WITH_ACK_RECEIPT;
|
||||||
|
|
|
@ -7,6 +7,7 @@ using namespace mwmp;
|
||||||
|
|
||||||
ActorPacket::ActorPacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
ActorPacket::ActorPacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
||||||
{
|
{
|
||||||
|
actorList = nullptr;
|
||||||
packetID = 0;
|
packetID = 0;
|
||||||
priority = HIGH_PRIORITY;
|
priority = HIGH_PRIORITY;
|
||||||
reliability = RELIABLE_ORDERED;
|
reliability = RELIABLE_ORDERED;
|
||||||
|
|
|
@ -7,6 +7,7 @@ using namespace mwmp;
|
||||||
|
|
||||||
ObjectPacket::ObjectPacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
ObjectPacket::ObjectPacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
||||||
{
|
{
|
||||||
|
objectList = nullptr;
|
||||||
hasCellData = false;
|
hasCellData = false;
|
||||||
packetID = 0;
|
packetID = 0;
|
||||||
priority = HIGH_PRIORITY;
|
priority = HIGH_PRIORITY;
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
mwmp::PacketPreInit::PacketPreInit(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
mwmp::PacketPreInit::PacketPreInit(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
||||||
{
|
{
|
||||||
|
checksums = nullptr;
|
||||||
packetID = ID_GAME_PREINIT;
|
packetID = ID_GAME_PREINIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ using namespace mwmp;
|
||||||
|
|
||||||
PlayerPacket::PlayerPacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
PlayerPacket::PlayerPacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
||||||
{
|
{
|
||||||
|
player = nullptr;
|
||||||
packetID = 0;
|
packetID = 0;
|
||||||
priority = HIGH_PRIORITY;
|
priority = HIGH_PRIORITY;
|
||||||
reliability = RELIABLE_ORDERED;
|
reliability = RELIABLE_ORDERED;
|
||||||
|
|
|
@ -7,6 +7,7 @@ using namespace mwmp;
|
||||||
|
|
||||||
WorldstatePacket::WorldstatePacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
WorldstatePacket::WorldstatePacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
|
||||||
{
|
{
|
||||||
|
worldstate = nullptr;
|
||||||
packetID = 0;
|
packetID = 0;
|
||||||
priority = HIGH_PRIORITY;
|
priority = HIGH_PRIORITY;
|
||||||
reliability = RELIABLE_ORDERED;
|
reliability = RELIABLE_ORDERED;
|
||||||
|
|
Loading…
Reference in a new issue