[unused-variable] warning removed from
policyengine.c
caipserver.c
ocresource.c
[unused-but-set-variable] warning removed from
psinterface.c
policyengine.c
[return-type] warning removed from
psinterface.c
[sign-compare] warning removed from
doxmresource.c
Change-Id: I44b633871e78a2baf9d0595dff926834581160c9
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10087
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
char *secure = (endpoint->flags & CA_SECURE) ? "secure " : "";
+ (void)secure; // eliminates unused-variable waring when built in release mode
(void)cast; // eliminates release warning
(void)fam;
* list and updating svr database.
*/
ret = (OC_STACK_OK == AddCredential(cred))? OC_EH_CHANGED : OC_EH_ERROR;
+ OC_UNUSED(previousMsgId);
#endif//__WITH_DTLS__
}
doxm->oxm = (OicSecOxm_t *) OICCalloc(gDoxm->oxmLen, sizeof(*doxm->oxm));
VERIFY_NON_NULL(TAG, doxm->oxm, ERROR);
doxm->oxmLen = gDoxm->oxmLen;
- int i;
- for (i = 0; i < gDoxm->oxmLen; i++)
+ for (size_t i = 0; i < gDoxm->oxmLen; i++)
{
doxm->oxm[i] = gDoxm->oxm[i];
}
static bool IsRequestFromDevOwner(PEContext_t *context)
{
bool retVal = false;
- OicUuid_t ownerid;
if(NULL == context)
{
OCStackResult GetCrlRownerId(OicUuid_t *rowner)
{
+ OC_UNUSED(rowner);
rowner = NULL;
return OC_STACK_ERROR;
}
OCStackResult GetSaclRownerId(OicUuid_t *rowner)
{
+ OC_UNUSED(rowner);
rowner = NULL;
return OC_STACK_ERROR;
}
OCStackResult GetSvcRownerId(OicUuid_t *rowner)
{
+ OC_UNUSED(rowner);
rowner = NULL;
return OC_STACK_ERROR;
}
OICFree(pstatCbor);
OICFree(doxmCbor);
OICFree(resetPfCbor);
+ return ret;
}
/**
securePort = devAddr->port;
}
- uint16_t tcpPort = 0;
#ifdef TCP_ADAPTER
+ uint16_t tcpPort = 0;
if (GetTCPPortInfo(devAddr, &tcpPort) != OC_STACK_OK)
{
tcpPort = 0;