From 10b5482cd03e243dda477407212ea8ccccd5f849 Mon Sep 17 00:00:00 2001 From: nandika Date: Thu, 27 Dec 2012 17:00:03 +0000 Subject: Warnings fixed with -Werror git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@1426255 13f79535-47bb-0310-9956-ffa450edef68 --- test/core/clientapi/test_clientapi.c | 4 ++-- test/core/deployment/test_deployment.c | 8 +++----- test/core/description/test_description.c | 5 ++--- test/core/transport/http/test_http_transport.c | 2 +- test/cutest/include/cut_http_server.h | 8 ++++---- 5 files changed, 12 insertions(+), 15 deletions(-) diff --git a/test/core/clientapi/test_clientapi.c b/test/core/clientapi/test_clientapi.c index ccd8709..04650f4 100644 --- a/test/core/clientapi/test_clientapi.c +++ b/test/core/clientapi/test_clientapi.c @@ -94,7 +94,7 @@ build_om_payload_for_echo_svc( const axis2_char_t * echo_text) { axiom_node_t *echo_om_node = NULL; - axiom_element_t *echo_om_ele = NULL; + /*axiom_element_t *echo_om_ele = NULL; */ axiom_node_t *text_om_node = NULL; axiom_element_t *text_om_ele = NULL; axiom_namespace_t *ns1 = NULL; @@ -102,7 +102,7 @@ build_om_payload_for_echo_svc( ns1 = axiom_namespace_create(env, "http://ws.apache.org/axis2/c/samples", "ns1"); - echo_om_ele = + /*echo_om_ele =*/ axiom_element_create(env, NULL, "echoString", ns1, &echo_om_node); text_om_ele = axiom_element_create(env, echo_om_node, "text", NULL, &text_om_node); diff --git a/test/core/deployment/test_deployment.c b/test/core/deployment/test_deployment.c index 761f398..2f0d765 100644 --- a/test/core/deployment/test_deployment.c +++ b/test/core/deployment/test_deployment.c @@ -153,16 +153,14 @@ axis2_test_transport_sender_load(axutil_env_t *env { axutil_dll_desc_t *dll_desc = NULL; axis2_char_t *dll_name = NULL; - axis2_transport_sender_t *transport_sender = NULL; + /*axis2_transport_sender_t *transport_sender = NULL;*/ axutil_param_t *impl_info_param = NULL; axis2_char_t *axis2c_home = NULL; - axis2_msg_ctx_t *msg_ctx = NULL; printf("******************************************\n"); printf("testing axis2_transport_sender load\n"); printf("******************************************\n"); - msg_ctx = (axis2_msg_ctx_t *) AXIS2_MALLOC(env->allocator, 5); dll_desc = axutil_dll_desc_create(env); axis2c_home = AXIS2_GETENV("AXIS2C_HOME"); @@ -173,8 +171,8 @@ axis2_test_transport_sender_load(axutil_env_t *env impl_info_param = axutil_param_create(env, NULL, NULL); axutil_param_set_value(impl_info_param, env, dll_desc); axutil_class_loader_init(env); - transport_sender = - (axis2_transport_sender_t *) axutil_class_loader_create_dll(env, + /* transport_sender = + (axis2_transport_sender_t *) */axutil_class_loader_create_dll(env, impl_info_param); AXIS2_FREE(env->allocator, dll_name); diff --git a/test/core/description/test_description.c b/test/core/description/test_description.c index f3ce7d3..53c0c34 100644 --- a/test/core/description/test_description.c +++ b/test/core/description/test_description.c @@ -122,18 +122,17 @@ axis2_test_svc_get_op(axutil_env_t *env struct axutil_qname *qname = NULL; struct axutil_hash_t *ops = NULL; struct axis2_op *op = NULL; - axis2_status_t status = AXIS2_SUCCESS; qname = axutil_qname_create(env, "op1", NULL, NULL); op = axis2_op_create_with_qname(env, qname); qname = axutil_qname_create(env, "svc1", NULL, NULL); svc = axis2_svc_create_with_qname(env, qname); - status = axis2_svc_add_op(svc, env, op); + axis2_svc_add_op(svc, env, op); qname = axutil_qname_create(env, "op2", NULL, NULL); op = axis2_op_create_with_qname(env, qname); - status = axis2_svc_add_op(svc, env, op); + axis2_svc_add_op(svc, env, op); ops = axis2_svc_get_all_ops(svc, env); CUT_ASSERT(ops != NULL); diff --git a/test/core/transport/http/test_http_transport.c b/test/core/transport/http/test_http_transport.c index bee1068..0416da8 100644 --- a/test/core/transport/http/test_http_transport.c +++ b/test/core/transport/http/test_http_transport.c @@ -182,7 +182,7 @@ test_http_client( printf("Status code :%d\n", status); body_bytes_len = axis2_http_simple_response_get_body_bytes(response, env, &body_bytes); - printf("body :%s\n", body_bytes); + printf("body :%s\n%d", body_bytes , body_bytes_len); axis2_http_client_free(client, env); axis2_http_simple_request_free(request, env); diff --git a/test/cutest/include/cut_http_server.h b/test/cutest/include/cut_http_server.h index e386750..9829167 100644 --- a/test/cutest/include/cut_http_server.h +++ b/test/cutest/include/cut_http_server.h @@ -86,14 +86,14 @@ void server_free( axutil_env_t * env) { - axutil_allocator_t *allocator = NULL; +/* axutil_allocator_t *allocator = NULL; */ if(server) { axis2_transport_receiver_free(server, system_env); } if(env) { - allocator = env->allocator; + /* allocator = env->allocator; */ axutil_env_free(env); } /*axutil_allocator_free(allocator); */ @@ -203,9 +203,9 @@ static int ut_start_http_server(axutil_env_t *env) static void ut_stop_http_server(axutil_env_t *env) { - axis2_status_t rv; + /*axis2_status_t rv;*/ if ( !thread_http_server ) return; - rv = axutil_thread_exit(thread_http_server, env->allocator); + /*rv = */axutil_thread_exit(thread_http_server, env->allocator); thread_http_server = NULL; } -- cgit v1.1-32-gdbae