Commit f0d7677d authored by George Nash's avatar George Nash Committed by Rick Bell

Cleanup unused varable warnings in callbacks

Change-Id: I5ab825ca172b9f63715c50e618c7e94fee6e362c
Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18717Reviewed-by: Larry Sachs's avatarLarry Sachs <larry.j.sachs@intel.com>
Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatarRick Bell <richard.s.bell@intel.com>
parent 56503319
......@@ -109,7 +109,7 @@ void UpnpConnector::disconnect()
gupnpStop();
return true;
};
request.finish = [&] (bool status) { promise.set_value(true); };
request.finish = [&] (bool status) {(void) status; promise.set_value(true); };
s_requestState.requestQueue.push(&request);
if (s_requestState.sourceId == 0)
......@@ -201,6 +201,7 @@ void UpnpConnector::gupnpStart()
int UpnpConnector::checkRequestQueue(gpointer data)
{
(void) data;
// Check request queue
std::lock_guard< std::mutex > lock(s_requestState.queueLock);
DEBUG_PRINT("(" << s_requestState.requestQueue.size() << ")");
......@@ -278,6 +279,7 @@ void UpnpConnector::onDeviceProxyAvailable(GUPnPControlPoint *controlPoint,
GUPnPDeviceProxy *proxy,
gpointer userData)
{
(void) controlPoint;
GUPnPDeviceInfo *deviceInfo = GUPNP_DEVICE_INFO(proxy);
UpnpResource::Ptr pUpnpResource;
const string udn = gupnp_device_info_get_udn(deviceInfo);
......@@ -375,6 +377,7 @@ void UpnpConnector::onDeviceProxyAvailable(GUPnPControlPoint *controlPoint,
void UpnpConnector::onServiceProxyAvailable(GUPnPControlPoint *controlPoint,
GUPnPServiceProxy *proxy)
{
(void) controlPoint;
GUPnPServiceInfo *info = GUPNP_SERVICE_INFO(proxy);
DEBUG_PRINT("Service type: " << gupnp_service_info_get_service_type(info));
......@@ -393,6 +396,7 @@ void UpnpConnector::onIntrospectionAvailable(GUPnPServiceInfo *info,
const GError *error,
gpointer context)
{
(void) context;
DEBUG_PRINT(gupnp_service_info_get_service_type(info) << ", udn: " << gupnp_service_info_get_udn(
info));
......@@ -485,6 +489,7 @@ void UpnpConnector::unregisterDeviceResource(string udn)
void UpnpConnector::onDeviceProxyUnavailable(GUPnPControlPoint *controlPoint,
GUPnPDeviceProxy *proxy)
{
(void) controlPoint;
GUPnPDeviceInfo *info = GUPNP_DEVICE_INFO(proxy);
const string udn = gupnp_device_info_get_udn(info);
......@@ -497,6 +502,7 @@ void UpnpConnector::onDeviceProxyUnavailable(GUPnPControlPoint *controlPoint,
void UpnpConnector::onServiceProxyUnavailable(GUPnPControlPoint *controlPoint,
GUPnPServiceProxy *proxy)
{
(void) controlPoint;
GUPnPServiceInfo *info = GUPNP_SERVICE_INFO(proxy);
DEBUG_PRINT("Service type: " << gupnp_service_info_get_service_type(info));
......
......@@ -104,6 +104,7 @@ OCEntityHandlerResult UpnpDimming::processGetRequest(OCRepPayload *payload)
OCEntityHandlerResult UpnpDimming::processPutRequest(OCEntityHandlerRequest *ehRequest,
string uri, string resourceType, OCRepPayload *payload)
{
(void) uri;
if (!ehRequest || !ehRequest->payload ||
ehRequest->payload->type != PAYLOAD_TYPE_REPRESENTATION)
{
......
......@@ -233,6 +233,7 @@ UpnpResource::Ptr UpnpManager::processService(GUPnPServiceProxy *proxy,
GUPnPServiceIntrospection *introspection,
UpnpRequestState *requestState)
{
(void) introspection;
const string udn = gupnp_service_info_get_udn(serviceInfo);
DEBUG_PRINT("type: " << gupnp_service_info_get_service_type(serviceInfo) << ", Udn: " << udn);
......
......@@ -83,6 +83,7 @@ OCEntityHandlerResult UpnpPowerSwitch::processGetRequest(OCRepPayload *payload)
OCEntityHandlerResult UpnpPowerSwitch::processPutRequest(OCEntityHandlerRequest *ehRequest,
string uri, string resourceType, OCRepPayload *payload)
{
(void) uri;
if (!ehRequest || !ehRequest->payload ||
ehRequest->payload->type != PAYLOAD_TYPE_REPRESENTATION)
{
......
......@@ -103,6 +103,7 @@ extern "C" DLL_PUBLIC MPMResult pluginScan(MPMPluginCtx *, MPMPipeMessage *messa
printf("***********************************************\n");
printf("UPNP pluginScan\n");
printf("***********************************************\n");
(void) message;
OIC_LOG(INFO, TAG, "Scan called!");
// Send back scan response to the client.
s_upnpConnector->onScan();
......@@ -134,6 +135,7 @@ extern "C" DLL_PUBLIC MPMResult pluginRemove(MPMPluginCtx *, MPMPipeMessage *mes
printf("***********************************************\n");
printf("UPNP pluginRemove\n");
printf("***********************************************\n");
(void) message;
OIC_LOG(INFO, TAG, "Remove called! Remove iotivity resources here based on what the client says");
// Currently nothing needs to be done beyond what's already done in pluginStop
return MPM_RESULT_OK;
......@@ -144,6 +146,7 @@ extern "C" DLL_PUBLIC MPMResult pluginReconnect(MPMPluginCtx *, MPMPipeMessage *
printf("***********************************************\n");
printf("UPNP pluginReconnect\n");
printf("***********************************************\n");
(void) message;
OIC_LOG(INFO, TAG, "Reconnect called! Reconnect to devices, create "
"resources from the message/cloud/db/file.");
// TODO implement the pluginReconnect function
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment