Skip to content

Commit

Permalink
Handle QueueType::None in message queue to silence clang compiler war…
Browse files Browse the repository at this point in the history
…ning

Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass committed Nov 14, 2024
1 parent b00d278 commit bd31069
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/ocpp/common/message_queue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,9 @@ template <typename M> class MessageQueue {
case QueueType::Transaction:
this->transaction_message_queue.erase(selected_transaction_message_it);
break;
case QueueType::None:
// do nothing
break;

default:
break;
Expand Down

0 comments on commit bd31069

Please sign in to comment.