Fix compiler warnings.
authorRavi Nanjundappa <nravi.n@samsung.com>
Tue, 21 Jul 2015 08:09:39 +0000 (13:39 +0530)
committerUze Choi <uzchoi@samsung.com>
Wed, 22 Jul 2015 17:11:08 +0000 (17:11 +0000)
This fixes compiler warnings related to in csdk and services dirs.
- unused but set variables
- control reaching end of non-void functions

Change-Id: I98b83091dc97e059e2755b98e33aef209dbb5adb
Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1778
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/resource-manipulation/src/ResourceClient.cpp

index 14b740d..afc3545 100644 (file)
@@ -242,6 +242,7 @@ namespace OIC
             catch (std::exception &exception)
             {
                 OC_LOG(DEBUG, CLIENT_W_TAG, " RemoteResourceObject::getState InvalidParameterException");
+                throw BadRequestException { "[getState] Get Resource Source State from Broker Error " };
             }
         }
 
@@ -335,6 +336,7 @@ namespace OIC
             {
                 OC_LOG(DEBUG, CLIENT_W_TAG,
                        "RemoteResourceObject::getResourceCacheState InvalidParameterException");
+                throw BadRequestException { "[getResourceCacheState] Caching not started" };
             }
         }