Fix switch-unreachable bug
Move a debug print out of a switch statement body to avoid
[-Wswitch-unreachable] compiler warnings.
Change-Id: Idab511a24c7a53a3f5de5fdd685bd440db864b8a
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/slp_message_handler.cpp b/slp_message_handler.cpp
index 14ed15f..7d88347 100644
--- a/slp_message_handler.cpp
+++ b/slp_message_handler.cpp
@@ -365,11 +365,11 @@
{
int rc = slp::SUCCESS;
buffer resp(0);
+ std::cout << "SLP Processing Request="
+ << msg.header.functionID <<"\n";
+
switch (msg.header.functionID)
{
- std::cout << "SLP Processing Request="
- << msg.header.functionID <<"\n";
-
case (uint8_t)slp::FunctionType::SRVTYPERQST:
std::tie(rc, resp) = slp::handler::internal::processSrvTypeRequest(msg);
break;