From 50bb1c950b00b29c29662f1cb5ce06395539fbe5 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sun, 3 Oct 2021 19:39:43 +0200 Subject: [PATCH] less warnings --- WifiESP.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/WifiESP.cpp b/WifiESP.cpp index f4e9773..2c6f169 100644 --- a/WifiESP.cpp +++ b/WifiESP.cpp @@ -36,10 +36,12 @@ static AsyncServer *server; static RingStream *outboundRing = new RingStream(2048); static void handleError(void* arg, AsyncClient* client, int8_t error) { + (void)arg; DIAG(F("connection error %s from client %s"), client->errorToString(error), client->remoteIP().toString().c_str()); } static void handleData(void* arg, AsyncClient* client, void *data, size_t len) { + (void)arg; //DIAG(F("data received from client %s"), client->remoteIP().toString().c_str()); uint8_t clientId; for (clientId=0; clientIdremoteIP().toString().c_str()); deleteClient(client); } static void handleNewClient(void* arg, AsyncClient* client) { + (void)arg; DIAG(F("New client %s"), client->remoteIP().toString().c_str()); // add to list @@ -213,7 +219,7 @@ void WifiESP::loop() { // call sendData int clientId=outboundRing->peek(); if (clientId >= 0) { - if (clientId > clients.size()) { + if ((unsigned int)clientId > clients.size()) { // something is wrong with the ringbuffer position outboundRing->info(); client = NULL;