axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nand...@apache.org
Subject svn commit: r1426255 - in /axis/axis2/c/core/trunk/test: core/clientapi/test_clientapi.c core/deployment/test_deployment.c core/description/test_description.c core/transport/http/test_http_transport.c cutest/include/cut_http_server.h
Date Thu, 27 Dec 2012 17:00:04 GMT
Author: nandika
Date: Thu Dec 27 17:00:03 2012
New Revision: 1426255

URL: http://svn.apache.org/viewvc?rev=1426255&view=rev
Log:
Warnings fixed with -Werror

Modified:
    axis/axis2/c/core/trunk/test/core/clientapi/test_clientapi.c
    axis/axis2/c/core/trunk/test/core/deployment/test_deployment.c
    axis/axis2/c/core/trunk/test/core/description/test_description.c
    axis/axis2/c/core/trunk/test/core/transport/http/test_http_transport.c
    axis/axis2/c/core/trunk/test/cutest/include/cut_http_server.h

Modified: axis/axis2/c/core/trunk/test/core/clientapi/test_clientapi.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/test/core/clientapi/test_clientapi.c?rev=1426255&r1=1426254&r2=1426255&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/test/core/clientapi/test_clientapi.c (original)
+++ axis/axis2/c/core/trunk/test/core/clientapi/test_clientapi.c Thu Dec 27 17:00:03 2012
@@ -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);

Modified: axis/axis2/c/core/trunk/test/core/deployment/test_deployment.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/test/core/deployment/test_deployment.c?rev=1426255&r1=1426254&r2=1426255&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/test/core/deployment/test_deployment.c (original)
+++ axis/axis2/c/core/trunk/test/core/deployment/test_deployment.c Thu Dec 27 17:00:03 2012
@@ -153,16 +153,14 @@ axis2_test_transport_sender_load(axutil_
 {
     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_
     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);

Modified: axis/axis2/c/core/trunk/test/core/description/test_description.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/test/core/description/test_description.c?rev=1426255&r1=1426254&r2=1426255&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/test/core/description/test_description.c (original)
+++ axis/axis2/c/core/trunk/test/core/description/test_description.c Thu Dec 27 17:00:03 2012
@@ -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);

Modified: axis/axis2/c/core/trunk/test/core/transport/http/test_http_transport.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/test/core/transport/http/test_http_transport.c?rev=1426255&r1=1426254&r2=1426255&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/test/core/transport/http/test_http_transport.c (original)
+++ axis/axis2/c/core/trunk/test/core/transport/http/test_http_transport.c Thu Dec 27 17:00:03
2012
@@ -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);

Modified: axis/axis2/c/core/trunk/test/cutest/include/cut_http_server.h
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/test/cutest/include/cut_http_server.h?rev=1426255&r1=1426254&r2=1426255&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/test/cutest/include/cut_http_server.h (original)
+++ axis/axis2/c/core/trunk/test/cutest/include/cut_http_server.h Thu Dec 27 17:00:03 2012
@@ -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_e
 
 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;
 }
 



Mime
View raw message