From d10e0ad11fa2640bffe7ba13a7e0f013f3c0a263 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 23 Mar 2018 20:02:45 -0500 Subject: [PATCH] Added default case Added default case to suppress -Wswitch warnings while compiling under PlatformIO. (platform: atmelavr; board: uno; framework: arduino) --- HttpClient.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/HttpClient.cpp b/HttpClient.cpp index 5a11a45..b331486 100644 --- a/HttpClient.cpp +++ b/HttpClient.cpp @@ -358,6 +358,10 @@ int HttpClient::responseStatusCode() case eStatusCodeRead: // We're just waiting for the end of the line now break; + + default: + // Do nothing + break; }; // We read something, reset the timeout counter timeoutStart = millis();