From: KIM JungYong Date: Mon, 22 May 2017 06:23:26 +0000 (+0900) Subject: Fix build warning on Notification service. X-Git-Tag: 1.3.0~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d01643c16f1fc36b3cfd44f478896ee227e95d0;p=platform%2Fupstream%2Fiotivity.git Fix build warning on Notification service. 1. unused parameters is resolved. 2. implicit using of functions is fixed as including owned header. 3. print format is fixed. Change-Id: I240ac626f6ed9f1aa02db7980ba657ae666653e9 Signed-off-by: KIM JungYong Reviewed-on: https://gerrit.iotivity.org/gerrit/20215 Reviewed-by: Uze Choi Tested-by: Uze Choi --- diff --git a/service/notification/examples/linux/cloud_connector.c b/service/notification/examples/linux/cloud_connector.c index 2fcdf0938..99190d500 100644 --- a/service/notification/examples/linux/cloud_connector.c +++ b/service/notification/examples/linux/cloud_connector.c @@ -20,6 +20,7 @@ /// This sample provides the way to create cloud sample +#include #include "ocstack.h" #include "ocpayload.h" #include "rd_client.h" @@ -137,7 +138,7 @@ void printRepresentation(OCRepPayloadValue *value) printf("Value: None\n"); break; case OCREP_PROP_INT: - printf("Value: %d\n", value->i); + printf("Value: %ld\n", value->i); break; case OCREP_PROP_DOUBLE: printf("Value: %f\n", value->d); @@ -168,6 +169,7 @@ void printRepresentation(OCRepPayloadValue *value) OCStackApplicationResult CloudSignupCallback(void *ctx, OCDoHandle handle, OCClientResponse *clientResponse) { + (void) handle; if (ctx != (void *)DEFAULT_CONTEXT_VALUE) { printf("Invalid Cloud Login/out callback received\n"); @@ -192,6 +194,7 @@ OCStackApplicationResult CloudSignupCallback(void *ctx, OCStackApplicationResult CloudLoginoutCallback(void *ctx, OCDoHandle handle, OCClientResponse *clientResponse) { + (void) handle; if (ctx != (void *)DEFAULT_CONTEXT_VALUE) { printf("Invalid Cloud Login/out callback received\n"); diff --git a/service/notification/src/provider/NSProviderResource.c b/service/notification/src/provider/NSProviderResource.c index b5d8cb5e9..15bce8c4c 100644 --- a/service/notification/src/provider/NSProviderResource.c +++ b/service/notification/src/provider/NSProviderResource.c @@ -18,8 +18,9 @@ // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -#include "NSProviderResource.h" +#include #include +#include "NSProviderResource.h" #include "rd_client.h" NSNotificationResource NotificationResource; @@ -34,6 +35,7 @@ OCStackApplicationResult NSHandlePublishCb(void *ctx, OCDoHandle handle, OCClientResponse *clientResponse) { (void) handle; + (void) clientResponse; if (ctx != (void *)DEFAULT_CONTEXT_VALUE) { NS_LOG(DEBUG, "Invalid Publish callback received");