From d37e0500068dc7fff16a25ede92ed755d4d022c2 Mon Sep 17 00:00:00 2001 From: Mathieu Carbou Date: Fri, 6 Sep 2024 13:11:00 +0200 Subject: [PATCH] Add __attribute__((unused)) --- src/AsyncEventSource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AsyncEventSource.cpp b/src/AsyncEventSource.cpp index 6a290e1..7e370ec 100644 --- a/src/AsyncEventSource.cpp +++ b/src/AsyncEventSource.cpp @@ -209,7 +209,7 @@ void AsyncEventSourceClient::_queueMessage(const char* message, size_t len) { } } -void AsyncEventSourceClient::_onAck(size_t len, uint32_t time) { +void AsyncEventSourceClient::_onAck(size_t len __attribute__((unused)), uint32_t time __attribute__((unused))) { #ifdef ESP32 // Same here, acquiring the lock early std::lock_guard lock(_lockmq);