aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Malsbary <todd.malsbary@intel.com>2018-04-16 13:53:56 -0700
committerTodd Malsbary <todd.malsbary@intel.com>2018-04-16 13:53:56 -0700
commit8a50f1472f0156720f1aff4ca57294a4cbc1c8b7 (patch)
tree677ff81d27ecf92ebe973f8dc8f37cb6cec5908c
parent51cc109a2961d0e2e10a83c21fa1c26df7a02b7f (diff)
Resolve implicit fallthrough warning.
Change-Id: I9fb1717c16eacbb3575f1e5013092998039a8607 Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
-rw-r--r--src/VirtualConfigurationResource.cpp4
-rw-r--r--src/VirtualResource.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/VirtualConfigurationResource.cpp b/src/VirtualConfigurationResource.cpp
index ec682d8..13cd1bb 100644
--- a/src/VirtualConfigurationResource.cpp
+++ b/src/VirtualConfigurationResource.cpp
@@ -369,8 +369,8 @@ void VirtualConfigurationResource::GetConfigurationsCB(ajn::Message &msg, void *
{
break;
}
- /* FALLTHROUGH */
}
+ /* FALLTHROUGH */
case ajn::MESSAGE_ERROR:
OCRepPayloadDestroy(context->m_payload);
context->m_payload = NULL;
@@ -430,8 +430,8 @@ void VirtualConfigurationResource::UpdateConfigurationsCB(ajn::Message &msg, voi
{
break;
}
- /* FALLTHROUGH */
}
+ /* FALLTHROUGH */
case ajn::MESSAGE_ERROR:
OCRepPayloadDestroy(context->m_payload);
context->m_payload = NULL;
diff --git a/src/VirtualResource.cpp b/src/VirtualResource.cpp
index 051a6b0..77d168a 100644
--- a/src/VirtualResource.cpp
+++ b/src/VirtualResource.cpp
@@ -1143,8 +1143,8 @@ void VirtualResource::SetCB(ajn::Message &msg, void *ctx)
result = OC_STACK_OK;
break;
}
- /* FALLTHROUGH */
}
+ /* FALLTHROUGH */
case ajn::MESSAGE_ERROR:
context->m_response->payload = (OCPayload *) CreatePayload(msg,
&context->m_response->ehResult);