[Service]Fix build warning of Notification manager.
authorjyong2.kim <jyong2.kim@samsung.com>
Mon, 3 Aug 2015 08:38:22 +0000 (17:38 +0900)
committerMadan Lanka <lanka.madan@samsung.com>
Mon, 3 Aug 2015 11:34:04 +0000 (11:34 +0000)
Remove unused parameters.

Change-Id: Id042dade72177d114c7e74b2dd9710fc182abed3
Signed-off-by: jyong2.kim <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2058
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
service/notification-manager/NotificationManager/src/HostingObject.cpp
service/notification-manager/NotificationManager/src/RequestObject.cpp
service/notification-manager/NotificationManager/src/RequestObject.h
service/notification-manager/NotificationManager/src/ResourceHosting.cpp
service/notification-manager/SampleApp/linux/sampleConsumer/SampleConsumer.cpp
service/notification-manager/SampleApp/linux/sampleProvider/SampleProvider.cpp

index 8a615d9..6228e3b 100644 (file)
@@ -232,7 +232,7 @@ RCSSetResponse HostingObject::setRequestHandler(const RCSRequest & primitiveRequ
     {
         RequestObject newRequest = { };
         newRequest.invokeRequest(remoteObject, RequestObject::RequestMethod::Setter,
-                primitiveRequest, resourceAttibutes);
+                resourceAttibutes);
     }catch(PlatformException &e)
     {
         OIC_HOSTING_LOG(DEBUG,
index b78073f..867cbdf 100644 (file)
@@ -26,7 +26,7 @@ namespace Service
 {
 
 void RequestObject::invokeRequest(RemoteObjectPtr remoteObject, RequestMethod method,
-        const RCSRequest & pRequest, RCSResourceAttributes & resourceAttibutes)
+        RCSResourceAttributes & resourceAttibutes)
 {
     try
     {
index b15ead9..a4b040d 100644 (file)
@@ -45,7 +45,7 @@ public:
     ~RequestObject() = default;
 
     void invokeRequest(RemoteObjectPtr remoteObject, RequestMethod method,
-            const RCSRequest & pRequest, RCSResourceAttributes & resourceAttibutes);
+            RCSResourceAttributes & resourceAttibutes);
 
 private:
     void setRequestCB(const RCSResourceAttributes & returnedAttributes,
index 3ce8fe3..b41bfe9 100755 (executable)
@@ -122,7 +122,7 @@ void ResourceHosting::requestMulticastPresence()
     }
 }
 
-void ResourceHosting::presenceHandler(OCStackResult ret, const unsigned int seq,
+void ResourceHosting::presenceHandler(OCStackResult ret, const unsigned int /*seq*/,
         const std::string & address)
 {
     switch(ret)
index 37488fd..28a6a20 100644 (file)
@@ -150,7 +150,7 @@ int observe_count()
     return ++oc;
 }
 
-void onObserve(const HeaderOptions &headerOption , const OCRepresentation &rep , const int &eCode,
+void onObserve(const HeaderOptions &/*headerOption*/, const OCRepresentation &rep , const int &eCode,
                const int &sequenceNumber)
 {
     std::cout << "onObserve" << std::endl;
@@ -236,7 +236,7 @@ void getRepresentation(std::shared_ptr< OCResource > resource)
     }
 }
 
-void onPut(const HeaderOptions &headerOption, const OCRepresentation &rep, const int eCode)
+void onPut(const HeaderOptions &/*headerOption*/, const OCRepresentation &rep, const int eCode)
 {
     try
     {
@@ -265,7 +265,7 @@ void onPut(const HeaderOptions &headerOption, const OCRepresentation &rep, const
 }
 
 //callback hadnler on DELETE request
-void onDelete(const HeaderOptions &headerOption , const int eCode)
+void onDelete(const HeaderOptions &/*headerOption*/, const int eCode)
 {
     try
     {
@@ -286,7 +286,7 @@ void onDelete(const HeaderOptions &headerOption , const int eCode)
 }
 
 // callback handler on GET request
-void onGet(const HeaderOptions &headerOption , const OCRepresentation &rep , const int eCode)
+void onGet(const HeaderOptions &/*headerOption*/, const OCRepresentation &rep , const int eCode)
 {
     std::cout << "GET request was successful1" << std::endl;
     if (eCode == SUCCESS_RESPONSE)
@@ -334,7 +334,7 @@ void PRINT()
     std::cout << std::endl;
 }
 
-int main(int argc , char *argv[])
+int main()
 {
 
     int in;
@@ -388,7 +388,7 @@ int main(int argc , char *argv[])
                     std::cout << "Invalid input, please try again" << std::endl;
                     break;
             }
-        }catch(OCException e) {
+        }catch(OCException e) {
             std::cout<< "Caught OCException [Code: "<<e.code()<<" Reason: "<<e.reason()<<std::endl;
         }
     }
index abb40db..e8540c3 100644 (file)
@@ -180,7 +180,7 @@ class TempHumidResource
 
 TempHumidResource myResource;
 
-void *ChangeLightRepresentation(void *param)
+void *ChangeLightRepresentation(void */*param*/)
 {
     cout << "ChangeLigthRepresentation Enter\n";
     while (1)