From 9a24cd84150c2a7062097726dd7d931e90685caf Mon Sep 17 00:00:00 2001 From: Sakthivel Samidurai Date: Tue, 25 Aug 2015 16:04:01 -0700 Subject: [PATCH] Fix C++ unit test build warnings Change-Id: Ic018b9d6fda988031761ba23b43d8a93231e00f4 Signed-off-by: Sakthivel Samidurai Reviewed-on: https://gerrit.iotivity.org/gerrit/2275 Tested-by: jenkins-iotivity Reviewed-by: Jon A. Cruz --- resource/unittests/OCPlatformTest.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/resource/unittests/OCPlatformTest.cpp b/resource/unittests/OCPlatformTest.cpp index f526585..ec8d14e 100644 --- a/resource/unittests/OCPlatformTest.cpp +++ b/resource/unittests/OCPlatformTest.cpp @@ -33,27 +33,27 @@ namespace OCPlatformTest OCResourceHandle resourceHandle; //OCPersistent Storage Handlers - static FILE* client_open(const char *path, const char *mode) + static FILE* client_open(const char* /*path*/, const char *mode) { std::cout << "<===Opening SVR DB file = './oic_svr_db_client.json' with mode = '"<< mode<<"' "< request) + OCEntityHandlerResult entityHandler(std::shared_ptr /*request*/) { return OC_EH_OK; } - void foundResource(std::shared_ptr resource) + void foundResource(std::shared_ptr /*resource*/) { } - void receivedDeviceInfo(const OCRepresentation& rep) + void receivedDeviceInfo(const OCRepresentation& /*rep*/) { } - void presenceHandler(OCStackResult result, - const unsigned int nonce, const std::string& hostAddress) + void presenceHandler(OCStackResult /*result*/, + const unsigned int /*nonce*/, const std::string& /*hostAddress*/) { } @@ -697,7 +697,7 @@ namespace OCPlatformTest TEST(RegisterDeviceInfoTest, RegisterDeviceInfoWithEmptyObject) { - OCDeviceInfo di = {}; + OCDeviceInfo di = {0}; EXPECT_ANY_THROW(OCPlatform::registerDeviceInfo(di)); } -- 2.7.4