summaryrefslogtreecommitdiff
path: root/lib/c_glib
diff options
context:
space:
mode:
authorcyy <cyyever@outlook.com>2019-01-06 11:21:10 +0800
committerJames E. King III <jking@apache.org>2019-01-07 08:11:37 -0500
commit0140cbf5674c5573d142c95c182f4ba98de99769 (patch)
tree6cc3818cee31d8485933f6420aac0b67df2c5041 /lib/c_glib
parent1f34504f43a7a409364d4114f180762bf2679e57 (diff)
downloadthrift-0140cbf5674c5573d142c95c182f4ba98de99769.tar.gz
remove unused variables
Diffstat (limited to 'lib/c_glib')
-rwxr-xr-xlib/c_glib/test/testbufferedtransport.c3
-rwxr-xr-xlib/c_glib/test/testframedtransport.c3
-rwxr-xr-xlib/c_glib/test/testtransportsocket.c3
3 files changed, 0 insertions, 9 deletions
diff --git a/lib/c_glib/test/testbufferedtransport.c b/lib/c_glib/test/testbufferedtransport.c
index c6e6b581d..d01806d61 100755
--- a/lib/c_glib/test/testbufferedtransport.c
+++ b/lib/c_glib/test/testbufferedtransport.c
@@ -175,11 +175,8 @@ test_read_and_write(void)
static void
thrift_socket_server_open (const int port, int times)
{
- int bytes = 0;
ThriftServerTransport *transport = NULL;
ThriftTransport *client = NULL;
- guchar buf[10]; /* a buffer */
- guchar match[10] = TEST_DATA;
int i;
ThriftServerSocket *tsocket = g_object_new (THRIFT_TYPE_SERVER_SOCKET,
"port", port, NULL);
diff --git a/lib/c_glib/test/testframedtransport.c b/lib/c_glib/test/testframedtransport.c
index 45397cef4..008e61e40 100755
--- a/lib/c_glib/test/testframedtransport.c
+++ b/lib/c_glib/test/testframedtransport.c
@@ -249,11 +249,8 @@ test_read_after_peer_close(void)
static void
thrift_socket_server_open (const int port, int times)
{
- int bytes = 0;
ThriftServerTransport *transport = NULL;
ThriftTransport *client = NULL;
- guchar buf[10]; /* a buffer */
- guchar match[10] = TEST_DATA;
int i;
ThriftServerSocket *tsocket = g_object_new (THRIFT_TYPE_SERVER_SOCKET,
diff --git a/lib/c_glib/test/testtransportsocket.c b/lib/c_glib/test/testtransportsocket.c
index fedbad6b6..89c61b910 100755
--- a/lib/c_glib/test/testtransportsocket.c
+++ b/lib/c_glib/test/testtransportsocket.c
@@ -291,11 +291,8 @@ test_peek(void)
static void
thrift_socket_server_open (const int port, int times)
{
- int bytes = 0;
ThriftServerTransport *transport = NULL;
ThriftTransport *client = NULL;
- guchar buf[10]; /* a buffer */
- guchar match[10] = TEST_DATA;
int i;
ThriftServerSocket *tsocket = g_object_new (THRIFT_TYPE_SERVER_SOCKET,
"port", port, NULL);