{
#endif
-/**
-* Helper for unused warning.
-*/
-#define UNUSED(x) (void)(x)
-
// Use the PCF macro to wrap strings stored in FLASH on the Arduino
// Example: OIC_LOG(INFO, TAG, PCF("Entering function"));
#ifdef ARDUINO
OCStackApplicationResult putReqCB(void* ctx, OCDoHandle handle,
OCClientResponse* clientResponse)
{
- UNUSED(ctx);
- UNUSED(handle);
+ OC_UNUSED(ctx);
+ OC_UNUSED(handle);
if (clientResponse)
{
OIC_LOG_V(INFO, TAG, "StackResult: %u", clientResponse->result);
OCStackApplicationResult postReqCB(void* ctx, OCDoHandle handle,
OCClientResponse* clientResponse)
{
- UNUSED(ctx);
- UNUSED(handle);
+ OC_UNUSED(ctx);
+ OC_UNUSED(handle);
if (clientResponse)
{
OIC_LOG_V(INFO, TAG, "StackResult: %u", clientResponse->result);
OCDoHandle handle,
OCClientResponse* clientResponse)
{
- UNUSED(ctx);
- UNUSED(handle);
+ OC_UNUSED(ctx);
+ OC_UNUSED(handle);
if (clientResponse)
{
OIC_LOG_V(INFO, TAG, "StackResult: %d", clientResponse->result);
OCStackApplicationResult getReqCB(void* ctx, OCDoHandle handle,
OCClientResponse* clientResponse)
{
- UNUSED(ctx);
- UNUSED(handle);
+ OC_UNUSED(ctx);
+ OC_UNUSED(handle);
if (!clientResponse)
{
OIC_LOG_V(INFO, TAG, "%s received NULL clientResponse", __func__);
OCStackApplicationResult discoveryReqCB(void* ctx, OCDoHandle handle,
OCClientResponse* clientResponse)
{
- UNUSED(ctx);
- UNUSED(handle);
+ OC_UNUSED(ctx);
+ OC_UNUSED(handle);
if (clientResponse)
{
OIC_LOG_V(INFO, TAG, "StackResult: %d", clientResponse->result);
static void *CHPParserExecuteMultiHandle(void* data)
{
OIC_LOG_V(DEBUG, TAG, "%s IN", __func__);
- UNUSED(data);
+ OC_UNUSED(data);
/*
* These fd sets will be fetched from curl multi handle and monitored to execute
* curl_multi_perform()
{
char buf[20] = {0};
ssize_t len = read(g_refreshFds[0], buf, sizeof(buf));
- UNUSED(len);
+ OC_UNUSED(len);
// new easy handles added, call multi_perform and refresh fds.
OIC_LOG(ERROR, TAG, "New easy handle added");
}