From e259c5900d56ee6d1906e408a40471fca23e8b1e Mon Sep 17 00:00:00 2001 From: George Nash Date: Tue, 1 Aug 2017 11:59:36 -0700 Subject: [PATCH] [IOT-2539] clean unused-variable warning The global variable are not being used because the code that uses them was blocked out using #if 0 till IOT-2106 is fixed. The variables have also been blocked out same as the code that was using the variables. Bug: https://jira.iotivity.org/browse/IOT-2539 Bug: https://jira.iotivity.org/browse/IOT-2106 Change-Id: I6f6289c3a34a83e69a2ac7918086d3752e7fd93e Signed-off-by: George Nash Reviewed-on: https://gerrit.iotivity.org/gerrit/21705 Tested-by: jenkins-iotivity Reviewed-by: Dan Mihai (cherry picked from commit dca9520b255d9bb19a0406b4bd730e4120c81a96) --- resource/csdk/security/provisioning/unittest/otmunittest.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/resource/csdk/security/provisioning/unittest/otmunittest.cpp b/resource/csdk/security/provisioning/unittest/otmunittest.cpp index 84b842c..7f45cbf 100644 --- a/resource/csdk/security/provisioning/unittest/otmunittest.cpp +++ b/resource/csdk/security/provisioning/unittest/otmunittest.cpp @@ -51,10 +51,6 @@ static bool g_callbackResult; static const char* g_otmCtx = "Test User Context"; static OCProvisionDev_t* g_unownedDevices = NULL; static OCProvisionDev_t* g_ownedDevices = NULL; -#ifdef MULTIPLE_OWNER -static OCProvisionDev_t* g_motEnabledDevices = NULL; -static OCProvisionDev_t* g_multiplOwnedDevices = NULL; -#endif //MULTIPLE_OWNER static int gNumOfUnownDevice = 0; static int gNumOfOwnDevice = 0; @@ -491,6 +487,9 @@ TEST(PerformUnlinkDevices, NullParam) //TODO will fix after IOT-2106 #if 0 //#ifdef MULTIPLE_OWNER +static OCProvisionDev_t* g_motEnabledDevices = NULL; +static OCProvisionDev_t* g_multiplOwnedDevices = NULL; + static void updateDoxmForMOTCB(void* ctx, size_t nOfRes, OCProvisionResult_t* arr, bool hasError) { OC_UNUSED(nOfRes); -- 2.7.4