From bd31069617127947e58df04d31ca899b3c4dd8f0 Mon Sep 17 00:00:00 2001 From: Kai-Uwe Hermann Date: Thu, 14 Nov 2024 11:26:08 +0100 Subject: [PATCH] Handle QueueType::None in message queue to silence clang compiler warning Signed-off-by: Kai-Uwe Hermann --- include/ocpp/common/message_queue.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/ocpp/common/message_queue.hpp b/include/ocpp/common/message_queue.hpp index b7df66cf4..1d56ee47c 100644 --- a/include/ocpp/common/message_queue.hpp +++ b/include/ocpp/common/message_queue.hpp @@ -561,6 +561,9 @@ template class MessageQueue { case QueueType::Transaction: this->transaction_message_queue.erase(selected_transaction_message_it); break; + case QueueType::None: + // do nothing + break; default: break;