Skip to content

Commit

Permalink
removing warnings for unused function params
Browse files Browse the repository at this point in the history
Maybe remove params like... at all?
  • Loading branch information
oktonion committed Apr 9, 2020
1 parent a060320 commit 4e822f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions peer.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ enet_peer_reset_outgoing_commands (ENetList * queue)
static void
enet_peer_remove_incoming_commands (ENetList * queue, ENetListIterator startCommand, ENetListIterator endCommand)
{
(void)(queue);
ENetListIterator currentCommand;

for (currentCommand = startCommand; currentCommand != endCommand; )
Expand Down
5 changes: 5 additions & 0 deletions protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ enet_protocol_command_size (enet_uint8 commandNumber)
static void
enet_protocol_change_state (ENetHost * host, ENetPeer * peer, ENetPeerState state)
{
(void)(host);
if (state == ENET_PEER_STATE_CONNECTED || state == ENET_PEER_STATE_DISCONNECT_LATER)
enet_peer_on_connect (peer);
else
Expand Down Expand Up @@ -283,6 +284,7 @@ enet_protocol_remove_sent_reliable_command (ENetPeer * peer, enet_uint16 reliabl
static ENetPeer *
enet_protocol_handle_connect (ENetHost * host, ENetProtocolHeader * header, ENetProtocol * command)
{
(void)(header);
enet_uint8 incomingSessionID, outgoingSessionID;
enet_uint32 mtu, windowSize;
ENetChannel * channel;
Expand Down Expand Up @@ -750,6 +752,8 @@ enet_protocol_handle_send_unreliable_fragment (ENetHost * host, ENetPeer * peer,
static int
enet_protocol_handle_ping (ENetHost * host, ENetPeer * peer, const ENetProtocol * command)
{
(void)(host);
(void)(command);
if (peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER)
return -1;

Expand Down Expand Up @@ -793,6 +797,7 @@ enet_protocol_handle_bandwidth_limit (ENetHost * host, ENetPeer * peer, const EN
static int
enet_protocol_handle_throttle_configure (ENetHost * host, ENetPeer * peer, const ENetProtocol * command)
{
(void)(host);
if (peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER)
return -1;

Expand Down

0 comments on commit 4e822f1

Please sign in to comment.