Skip to content

Commit 4e822f1

Browse files
committed
removing warnings for unused function params
Maybe remove params like... at all?
1 parent a060320 commit 4e822f1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

peer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ enet_peer_reset_outgoing_commands (ENetList * queue)
270270
static void
271271
enet_peer_remove_incoming_commands (ENetList * queue, ENetListIterator startCommand, ENetListIterator endCommand)
272272
{
273+
(void)(queue);
273274
ENetListIterator currentCommand;
274275

275276
for (currentCommand = startCommand; currentCommand != endCommand; )

protocol.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ enet_protocol_command_size (enet_uint8 commandNumber)
3535
static void
3636
enet_protocol_change_state (ENetHost * host, ENetPeer * peer, ENetPeerState state)
3737
{
38+
(void)(host);
3839
if (state == ENET_PEER_STATE_CONNECTED || state == ENET_PEER_STATE_DISCONNECT_LATER)
3940
enet_peer_on_connect (peer);
4041
else
@@ -283,6 +284,7 @@ enet_protocol_remove_sent_reliable_command (ENetPeer * peer, enet_uint16 reliabl
283284
static ENetPeer *
284285
enet_protocol_handle_connect (ENetHost * host, ENetProtocolHeader * header, ENetProtocol * command)
285286
{
287+
(void)(header);
286288
enet_uint8 incomingSessionID, outgoingSessionID;
287289
enet_uint32 mtu, windowSize;
288290
ENetChannel * channel;
@@ -750,6 +752,8 @@ enet_protocol_handle_send_unreliable_fragment (ENetHost * host, ENetPeer * peer,
750752
static int
751753
enet_protocol_handle_ping (ENetHost * host, ENetPeer * peer, const ENetProtocol * command)
752754
{
755+
(void)(host);
756+
(void)(command);
753757
if (peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER)
754758
return -1;
755759

@@ -793,6 +797,7 @@ enet_protocol_handle_bandwidth_limit (ENetHost * host, ENetPeer * peer, const EN
793797
static int
794798
enet_protocol_handle_throttle_configure (ENetHost * host, ENetPeer * peer, const ENetProtocol * command)
795799
{
800+
(void)(host);
796801
if (peer -> state != ENET_PEER_STATE_CONNECTED && peer -> state != ENET_PEER_STATE_DISCONNECT_LATER)
797802
return -1;
798803

0 commit comments

Comments
 (0)