|
@@ -56,6 +56,8 @@
|
|
|
#define ENET_TIME_GREATER_EQUAL(a, b) (! ENET_TIME_LESS (a, b))
|
|
|
#define ENET_TIME_DIFFERENCE(a, b) ((a) - (b) >= ENET_TIME_OVERFLOW ? (b) - (a) : (a) - (b))
|
|
|
|
|
|
+#define ENET_UNUSED(x) (void)x;
|
|
|
+
|
|
|
// =======================================================================//
|
|
|
// !
|
|
|
// ! System differences
|
|
@@ -1470,6 +1472,7 @@ extern "C" {
|
|
|
}
|
|
|
|
|
|
static void enet_protocol_change_state(ENetHost *host, ENetPeer *peer, ENetPeerState state) {
|
|
|
+ ENET_UNUSED(host)
|
|
|
if (state == ENET_PEER_STATE_CONNECTED || state == ENET_PEER_STATE_DISCONNECT_LATER) {
|
|
|
enet_peer_on_connect(peer);
|
|
|
} else {
|
|
@@ -1703,6 +1706,7 @@ extern "C" {
|
|
|
} /* enet_protocol_remove_sent_reliable_command */
|
|
|
|
|
|
static ENetPeer * enet_protocol_handle_connect(ENetHost *host, ENetProtocolHeader *header, ENetProtocol *command) {
|
|
|
+ ENET_UNUSED(header)
|
|
|
enet_uint8 incomingSessionID, outgoingSessionID;
|
|
|
enet_uint32 mtu, windowSize;
|
|
|
ENetChannel *channel;
|
|
@@ -2148,6 +2152,8 @@ extern "C" {
|
|
|
} /* enet_protocol_handle_send_unreliable_fragment */
|
|
|
|
|
|
static int enet_protocol_handle_ping(ENetHost *host, ENetPeer *peer, const ENetProtocol *command) {
|
|
|
+ ENET_UNUSED(host)
|
|
|
+ ENET_UNUSED(command)
|
|
|
if (peer->state != ENET_PEER_STATE_CONNECTED && peer->state != ENET_PEER_STATE_DISCONNECT_LATER) {
|
|
|
return -1;
|
|
|
}
|
|
@@ -2191,6 +2197,7 @@ extern "C" {
|
|
|
} /* enet_protocol_handle_bandwidth_limit */
|
|
|
|
|
|
static int enet_protocol_handle_throttle_configure(ENetHost *host, ENetPeer *peer, const ENetProtocol *command) {
|
|
|
+ ENET_UNUSED(host)
|
|
|
if (peer->state != ENET_PEER_STATE_CONNECTED && peer->state != ENET_PEER_STATE_DISCONNECT_LATER) {
|
|
|
return -1;
|
|
|
}
|
|
@@ -3619,6 +3626,7 @@ extern "C" {
|
|
|
}
|
|
|
|
|
|
static void enet_peer_remove_incoming_commands(ENetList *queue, ENetListIterator startCommand, ENetListIterator endCommand) {
|
|
|
+ ENET_UNUSED(queue)
|
|
|
ENetListIterator currentCommand;
|
|
|
|
|
|
for (currentCommand = startCommand; currentCommand != endCommand;) {
|