mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 14:29:05 -07:00
warning workarounds
This commit is contained in:
parent
e96c668702
commit
70d0d8f25d
3 changed files with 3 additions and 3 deletions
2
peer.c
2
peer.c
|
@ -715,7 +715,7 @@ enet_peer_queue_incoming_command (ENetPeer * peer, const ENetProtocol * command,
|
||||||
static ENetIncomingCommand dummyCommand;
|
static ENetIncomingCommand dummyCommand;
|
||||||
|
|
||||||
ENetChannel * channel = & peer -> channels [command -> header.channelID];
|
ENetChannel * channel = & peer -> channels [command -> header.channelID];
|
||||||
enet_uint32 unreliableSequenceNumber = 0, reliableSequenceNumber;
|
enet_uint32 unreliableSequenceNumber = 0, reliableSequenceNumber = 0;
|
||||||
enet_uint16 reliableWindow, currentWindow;
|
enet_uint16 reliableWindow, currentWindow;
|
||||||
ENetIncomingCommand * incomingCommand;
|
ENetIncomingCommand * incomingCommand;
|
||||||
ENetListIterator currentCommand;
|
ENetListIterator currentCommand;
|
||||||
|
|
|
@ -170,7 +170,7 @@ enet_protocol_remove_sent_unreliable_commands (ENetPeer * peer)
|
||||||
static ENetProtocolCommand
|
static ENetProtocolCommand
|
||||||
enet_protocol_remove_sent_reliable_command (ENetPeer * peer, enet_uint16 reliableSequenceNumber, enet_uint8 channelID)
|
enet_protocol_remove_sent_reliable_command (ENetPeer * peer, enet_uint16 reliableSequenceNumber, enet_uint8 channelID)
|
||||||
{
|
{
|
||||||
ENetOutgoingCommand * outgoingCommand;
|
ENetOutgoingCommand * outgoingCommand = NULL;
|
||||||
ENetListIterator currentCommand;
|
ENetListIterator currentCommand;
|
||||||
ENetProtocolCommand commandNumber;
|
ENetProtocolCommand commandNumber;
|
||||||
int wasSent = 1;
|
int wasSent = 1;
|
||||||
|
|
2
win32.c
2
win32.c
|
@ -238,7 +238,7 @@ enet_socket_send (ENetSocket socket,
|
||||||
(DWORD) bufferCount,
|
(DWORD) bufferCount,
|
||||||
& sentLength,
|
& sentLength,
|
||||||
0,
|
0,
|
||||||
address != NULL ? (struct sockaddr *) & sin : 0,
|
address != NULL ? (struct sockaddr *) & sin : NULL,
|
||||||
address != NULL ? sizeof (struct sockaddr_in) : 0,
|
address != NULL ? sizeof (struct sockaddr_in) : 0,
|
||||||
NULL,
|
NULL,
|
||||||
NULL) == SOCKET_ERROR)
|
NULL) == SOCKET_ERROR)
|
||||||
|
|
Loading…
Reference in a new issue