From aede837fea21116ac74586c924713781d01e6077 Mon Sep 17 00:00:00 2001 From: Brenton Bostick Date: Wed, 2 Aug 2023 12:11:47 -0400 Subject: [PATCH] Fix: warning: enumeration value 'TCP_HTTP_OUTGOING' not handled in switch [-Wswitch] --- src/NodeService.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/NodeService.cpp b/src/NodeService.cpp index 5f1c31da..501b5b80 100644 --- a/src/NodeService.cpp +++ b/src/NodeService.cpp @@ -713,6 +713,10 @@ void NodeService::phyOnTcpData(PhySocket* sock, void** uptr, void* data, unsigne TcpConnection* tc = reinterpret_cast(*uptr); tc->lastReceive = OSUtils::now(); switch (tc->type) { + case TcpConnection::TCP_UNCATEGORIZED_INCOMING: + case TcpConnection::TCP_HTTP_INCOMING: + case TcpConnection::TCP_HTTP_OUTGOING: + break; case TcpConnection::TCP_TUNNEL_OUTGOING: tc->readq.append((const char*)data, len); while (tc->readq.length() >= 5) {