[ITC][rpc-port][Non-ACR] Removed unused variables and warnings 62/289962/2
authorUtkarsh Tiwari <utk.tiwari@samsung.com>
Tue, 14 Mar 2023 09:40:22 +0000 (15:10 +0530)
committerUtkarsh Tiwari <utk.tiwari@samsung.com>
Thu, 16 Mar 2023 08:23:50 +0000 (08:23 +0000)
Change-Id: I51fb453b9643c1bc8dd8ced0a5060746e89b82e1
Signed-off-by: Utkarsh Tiwari <utk.tiwari@samsung.com>
(cherry picked from commit af6642da5338c16c15b0b44e0c2eef5f6b4a3563)

src/itc/rpc-port/ITs-rpc-port-parcel.c
src/itc/rpc-port/ITs-rpc-port.c

index b0b4f14371e2038fc9e6b171bd062eaca25d5f98..c411a9880bc3c10e987b4a5fcbb4aeeb9edfa31b 100755 (executable)
@@ -32,7 +32,6 @@ const char g_szCreateTest[] = "create_from_port";
 const char g_szSendTest[] = "send";
 const char g_szSetGetSeqNumTest[] = "set_get_seq_num";
 const char g_szSetGetTagTest[] = "set_get_tag";
-static const char g_szPorttest[] = "porttest";
 static const char g_szPort_Name[] = "Message";
 
 bool g_callbackOnMsgReceived;
@@ -611,7 +610,6 @@ int ITc_rpc_port_parcel_create_from_port_p(void)
        rpc_port_parcel_h hPortParcel = NULL;
        g_bCallbackCalled = false;
        g_callbackOnMsgReceived = false;
-       int nTimeoutId = -1;
 
        int nRetVal = rpc_port_proxy_add_connected_event_cb(g_hproxyhandle,RpcMessage_Onconnected_cb, g_szCreateTest);
        PRINT_RESULT(RPC_PORT_ERROR_NONE, nRetVal, "rpc_port_proxy_add_connected_event_cb", RpcPortGetError(nRetVal));
@@ -660,7 +658,6 @@ int ITc_rpc_port_parcel_send_p(void)
 
        rpc_port_proxy_h hPortProxy = NULL;
        g_bCallbackCalled = false;
-       int nTimeoutId = -1;
 
        int nRetVal = rpc_port_proxy_add_connected_event_cb(g_hproxyhandle,RpcMessage_Onconnected_cb2, g_szSendTest);
        PRINT_RESULT(RPC_PORT_ERROR_NONE, nRetVal, "rpc_port_proxy_add_connected_event_cb", RpcPortGetError(nRetVal));
@@ -1251,7 +1248,6 @@ int ITc_rpc_port_parcel_header_set_get_seq_num_p(void)
 
        g_bCallbackCalled = false;
        g_callbackOnMsgReceived = false;
-       int nTimeoutId = -1;
 
        int nRetVal = rpc_port_proxy_add_connected_event_cb(g_hproxyhandle,RpcMessage_Onconnected_cb, g_szSendTest);
        PRINT_RESULT(RPC_PORT_ERROR_NONE, nRetVal, "rpc_port_proxy_add_connected_event_cb", RpcPortGetError(nRetVal));
@@ -1335,7 +1331,6 @@ int ITc_rpc_port_parcel_header_set_get_tag_p(void)
 
        g_bCallbackCalled = false;
        g_callbackOnMsgReceived = false;
-       int nTimeoutId = -1;
 
        int nRetVal = rpc_port_proxy_add_connected_event_cb(g_hproxyhandle,RpcMessage_Onconnected_cb, g_szSendTest);
        PRINT_RESULT(RPC_PORT_ERROR_NONE, nRetVal, "rpc_port_proxy_add_connected_event_cb", RpcPortGetError(nRetVal));
@@ -1380,7 +1375,6 @@ int ITc_rpc_port_parcel_get_raw_p(void)
 {
        START_TEST;
        rpc_port_parcel_h hPortParcel = NULL;
-       rpc_port_parcel_h hPortParcelFromRaw = NULL;
        unsigned int nSize = 0;
        char *pszStr = NULL, *pszWriteString = "test";
        void *pszRaw = NULL;
index 7153bbb8d2c8c99d771d337571c9b349389113cd..0b8d019cf335d2ed55812ae8cce2b07dc7dde16b 100755 (executable)
@@ -499,7 +499,6 @@ int ITc_rpc_port_write_p(void)
        START_TEST;
        rpc_port_h *hPort = NULL;
        g_bCallbackCalled = false;
-       rpc_port_parcel_h parcel_received = NULL;
        char data[] = "read";
        char buf[256];