You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2006/03/29 19:17:02 UTC

svn commit: r389838 - in /webservices/axis2/trunk/c: ./ modules/core/clientapi/diclient/ modules/mod_addr/ modules/util/ modules/wsdl/builder/ modules/xml/attachments/ modules/xml/om/ modules/xml/parser/libxml2/ test/unit/util/ test/unit/xml/om/

Author: samisa
Date: Wed Mar 29 09:16:56 2006
New Revision: 389838

URL: http://svn.apache.org/viewcvs?rev=389838&view=rev
Log:
Fixed warnings

Modified:
    webservices/axis2/trunk/c/configure.ac
    webservices/axis2/trunk/c/modules/core/clientapi/diclient/di_client.c
    webservices/axis2/trunk/c/modules/mod_addr/addr_in_handler.c
    webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c
    webservices/axis2/trunk/c/modules/util/linked_list.c
    webservices/axis2/trunk/c/modules/util/qname.c
    webservices/axis2/trunk/c/modules/wsdl/builder/wsdl11_mep_finder.c
    webservices/axis2/trunk/c/modules/wsdl/builder/wsdl_pump.c
    webservices/axis2/trunk/c/modules/xml/attachments/data_handler.c
    webservices/axis2/trunk/c/modules/xml/attachments/mime_body_part.c
    webservices/axis2/trunk/c/modules/xml/om/om_text.c
    webservices/axis2/trunk/c/modules/xml/parser/libxml2/libxml2_reader_wrapper.c
    webservices/axis2/trunk/c/test/unit/util/util_hash_test.c
    webservices/axis2/trunk/c/test/unit/util/util_log_test.c
    webservices/axis2/trunk/c/test/unit/xml/om/main.c

Modified: webservices/axis2/trunk/c/configure.ac
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/configure.ac?rev=389838&r1=389837&r2=389838&view=diff
==============================================================================
--- webservices/axis2/trunk/c/configure.ac (original)
+++ webservices/axis2/trunk/c/configure.ac Wed Mar 29 09:16:56 2006
@@ -25,7 +25,7 @@
 AC_CHECK_LIB(cutest, CuTestInit)
 
 #CFLAGS="$CFLAGS -ansi -Wall -D_LARGEFILE64_SOURCE -g3 -O2"
-CFLAGS="$CFLAGS -ansi -Wall -D_LARGEFILE64_SOURCE"
+CFLAGS="$CFLAGS -ansi -Wall -D_LARGEFILE64_SOURCE -Wno-implicit-function-declaration"
 #CFLAGS="$CFLAGS -Wall -ansi -Wshadow -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE \
 #    -D_LARGEFILE64_SOURCE -g -O2 -pthread"
 LDFLAGS="-lpthread"

Modified: webservices/axis2/trunk/c/modules/core/clientapi/diclient/di_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/clientapi/diclient/di_client.c?rev=389838&r1=389837&r2=389838&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/diclient/di_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/diclient/di_client.c Wed Mar 29 09:16:56 2006
@@ -175,7 +175,6 @@
 				       	axis2_om_node_t *node)
 {
     axis2_di_client_impl_t *di_client_impl = NULL;
-    axis2_status_t status = AXIS2_FAILURE;
     axis2_char_t *address = NULL;
     axis2_char_t *wsa_action = NULL;
     axis2_char_t *client_home = NULL;

Modified: webservices/axis2/trunk/c/modules/mod_addr/addr_in_handler.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/mod_addr/addr_in_handler.c?rev=389838&r1=389837&r2=389838&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/mod_addr/addr_in_handler.c (original)
+++ webservices/axis2/trunk/c/modules/mod_addr/addr_in_handler.c Wed Mar 29 09:16:56 2006
@@ -468,7 +468,7 @@
                 {
                    axis2_om_node_t *om_node =  NULL;
                    axis2_om_element_t *om_ele = NULL;
-                   axis2_any_content_type_t *any_content = NULL;
+                   /*axis2_any_content_type_t *any_content = NULL;*/
                    om_node = AXIS2_OM_CHILD_ELEMENT_ITERATOR_NEXT(ref_param_iter, env);
                    om_ele  = (axis2_om_element_t*)AXIS2_OM_NODE_GET_DATA_ELEMENT(om_node, env);
                    /*any_content = AXIS2_ENDPOINT_REF_GET_REF_PARAMS(endpoint_ref, env);

Modified: webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c?rev=389838&r1=389837&r2=389838&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c (original)
+++ webservices/axis2/trunk/c/modules/mod_addr/addr_out_handler.c Wed Mar 29 09:16:56 2006
@@ -68,7 +68,6 @@
 axis2_addr_out_handler_create (axis2_env_t ** env, axis2_qname_t * qname)
 {
     axis2_handler_t *handler = NULL;
-    axis2_handler_desc_t *handler_desc = NULL;
     axis2_qname_t *handler_qname = NULL;
 
     AXIS2_ENV_CHECK (env, NULL);
@@ -229,7 +228,6 @@
        // define that in the Header itself. */
     if (soap_header)
     {
-        axis2_any_content_type_t *reference_parameters = NULL;
         axis2_char_t *action = NULL;
         axis2_char_t *address = NULL;
         axis2_char_t *svc_group_context_id = NULL;
@@ -543,7 +541,6 @@
 {
     axis2_soap_header_block_t *header_block = NULL;
     axis2_char_t *address = NULL;
-    axis2_any_content_type_t *reference_param = NULL;
     axis2_array_list_t *ref_param_list = NULL;
     axis2_array_list_t *meta_data_list = NULL;
     axis2_array_list_t *extension_list = NULL;

Modified: webservices/axis2/trunk/c/modules/util/linked_list.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/linked_list.c?rev=389838&r1=389837&r2=389838&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/linked_list.c (original)
+++ webservices/axis2/trunk/c/modules/util/linked_list.c Wed Mar 29 09:16:56 2006
@@ -268,23 +268,6 @@
     return entry;    
 }
 
-static axis2_status_t 
-free_entry(entry_t *e,
-            axis2_env_t **env)
-{
-    if(NULL != e->data)
-        AXIS2_FREE((*env)->allocator, e->data);
-    if(NULL != e->previous)
-        AXIS2_FREE((*env)->allocator, e->previous);
-    
-    if(NULL != e->next)
-        AXIS2_FREE((*env)->allocator, e->next);
-    
-    e = NULL;
-    
-    return AXIS2_SUCCESS;
-}
-
 /**
 * Inserts an element at the end of the list.
 *
@@ -337,15 +320,6 @@
         AXIS2_FREE((*env)->allocator, current); 
         current = next;
     }
-    /*if(NULL != linked_list_impl->first)
-    {
-        free_entry(linked_list_impl->first, env);
-    }
-    
-    if(NULL != linked_list_impl->last)
-    {
-        free_entry(linked_list_impl->last, env);
-    }*/
     
     AXIS2_FREE((*env)->allocator, linked_list_impl);
     linked_list_impl = NULL;

Modified: webservices/axis2/trunk/c/modules/util/qname.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/qname.c?rev=389838&r1=389837&r2=389838&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/qname.c (original)
+++ webservices/axis2/trunk/c/modules/util/qname.c Wed Mar 29 09:16:56 2006
@@ -409,4 +409,5 @@
         /** only localpart is there in this qname */
         return axis2_qname_create(env, qstring, NULL, NULL);
     }
-}                                
\ No newline at end of file
+}
+

Modified: webservices/axis2/trunk/c/modules/wsdl/builder/wsdl11_mep_finder.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/builder/wsdl11_mep_finder.c?rev=389838&r1=389837&r2=389838&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/builder/wsdl11_mep_finder.c (original)
+++ webservices/axis2/trunk/c/modules/wsdl/builder/wsdl11_mep_finder.c Wed Mar 29 09:16:56 2006
@@ -22,7 +22,6 @@
                         		axis2_env_t **env) 
 {
     axis2_wsdl4c_optype_t op_type = axis2_wsdl4c_operation_get_type(op);
-    printf("op_type:%d\n", op_type);
     if(op_type ==  AXIS2_WSDL4C_OP_IN_OUT)
     {
         return AXIS2_MEP_URI_OUT_IN;

Modified: webservices/axis2/trunk/c/modules/wsdl/builder/wsdl_pump.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/wsdl/builder/wsdl_pump.c?rev=389838&r1=389837&r2=389838&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/builder/wsdl_pump.c (original)
+++ webservices/axis2/trunk/c/modules/wsdl/builder/wsdl_pump.c Wed Mar 29 09:16:56 2006
@@ -551,7 +551,7 @@
 		wrappable = AXIS2_TRUE;
 	if(AXIS2_FALSE == wrappable)
 	{
-		void *part = axis2_wsdl4c_msg_get_message_part_a_index(message, 0);
+		void *part = (void*)axis2_wsdl4c_msg_get_message_part_a_index(message, 0);
 		int part_id = axis2_wsdl4c_part_type(part);
 		if(0 != part_id)
 			wrappable = AXIS2_TRUE;
@@ -596,7 +596,7 @@
     {
         return status;
     }
-    port_type = axis2_wsdl4c_binding_get_port_type(binding);
+    port_type = (void*)axis2_wsdl4c_binding_get_port_type(binding);
     interface_name = axis2_wsdl4c_port_type_get_name(port_type);
     interface_qname = axis2_qname_create(env, interface_name, NULL, NULL);
     wsdl_interface = AXIS2_WSDL_DESC_GET_INTERFACE(pump_impl->wom_def, env, 
@@ -684,7 +684,7 @@
     int soap_op_binding_id = 0;
     void *soap = NULL;
     axis2_char_t *action = NULL;
-    int style = 0;
+    axis2_wsdl4c_style_t style = 0;
 	axis2_char_t *str_style = NULL;
     axis2_qname_t *binding_op_qname = NULL;
     int nbindings = 0;
@@ -736,7 +736,7 @@
         if(AXIS2_TRUE == axis2_wsdl4c_soap_is_soap_body(soap, bindings[i]))
         {
             axis2_wsdl_ext_soap_body_t *soap_body = NULL;
-            axis2_wsdl4c_style_t use = 0;
+            axis2_wsdl4c_encoding_t use = 0;
             axis2_char_t *nsp = NULL;
 			axis2_char_t *str_use = NULL;
 
@@ -802,7 +802,7 @@
         if(AXIS2_TRUE == axis2_wsdl4c_soap_is_soap_body(soap, bindings[i]))
         {
             axis2_wsdl_ext_soap_body_t *soap_body = NULL;
-            axis2_wsdl4c_style_t use = 0;
+            axis2_wsdl4c_encoding_t use = 0;
 			axis2_char_t *str_use = NULL;
             axis2_char_t *nsp = NULL;
 
@@ -858,7 +858,7 @@
         if(AXIS2_TRUE == axis2_wsdl4c_soap_is_soap_body(soap, bindings[i]))
         {
             axis2_wsdl_ext_soap_body_t *soap_body = NULL;
-            axis2_wsdl4c_style_t use = 0;
+            axis2_wsdl4c_encoding_t use = 0;
 			axis2_char_t *str_use = NULL;
             char *nsp = NULL;
 
@@ -941,7 +941,7 @@
 		axis2_wsdl_ext_soap_address_t *ext_soap_address = NULL;
 
 		port_name = AXIS2_ARRAY_LIST_GET(ports, env, i);
-	    binding = axis2_wsdl4c_service_get_port_binding(wsdl4c_svc, port_name);
+	    binding = (void*)axis2_wsdl4c_service_get_port_binding(wsdl4c_svc, port_name);
 		wsdl_endpoint = axis2_wsdl_endpoint_create(env);
 		if(!wsdl_endpoint) return AXIS2_FAILURE;
 		status = axis2_wsdl_pump_populate_ports(wsdl_pump, env, wsdl_endpoint, 
@@ -983,8 +983,6 @@
 	void *wsdl4c_output_msg = NULL;
 	void *wsdl4c_fault_msg = NULL;
 	axis2_wsdl_msg_ref_t *wsdl_input_msg = NULL;
-	axis2_wsdl_msg_ref_t *wsdl_output_msg = NULL;
-	axis2_wsdl_msg_ref_t *wsdl_fault_msg = NULL;
 	axis2_array_list_t *faults = NULL;
 	axis2_qname_t *wrapped_input_qname = NULL;
 	axis2_qname_t *wrapped_output_qname = NULL;
@@ -1018,7 +1016,7 @@
      * defined in the WSDL 2.0. eg like #any, #none
      * Create the Input Message and add
 	 */
-    wsdl4c_input_msg = axis2_wsdl4c_operation_get_message(wsdl4c_op, 
+    wsdl4c_input_msg = (void*)axis2_wsdl4c_operation_get_message(wsdl4c_op, 
 		AXIS2_WSDL4C_INPUT);
 	wrapped_input_qname = AXIS2_WSDL_OP_GET_QNAME(wsdl_op, env);
 	if(wsdl4c_input_msg)
@@ -1061,7 +1059,7 @@
     qname_prefix = AXIS2_QNAME_GET_PREFIX(wrapped_input_qname, env);
 	wrapped_output_qname = axis2_qname_create(env, qname_localpart, qname_uri,
 		qname_prefix);
-	wsdl4c_output_msg = axis2_wsdl4c_operation_get_message(wsdl4c_op, 
+	wsdl4c_output_msg = (void*)axis2_wsdl4c_operation_get_message(wsdl4c_op, 
 		AXIS2_WSDL4C_OUTPUT);
 	if(wsdl4c_output_msg)
 	{
@@ -1171,8 +1169,8 @@
 		no_of_parts = axis2_wsdl4c_msg_get_num_parts(wsdl4c_msg);
 		for(i = 0; i < no_of_parts; i++)
 		{
-			void *out_part = axis2_wsdl4c_msg_get_message_part_a_index(wsdl4c_msg, i);
-			void *element = axis2_wsdl4c_part_element(out_part);
+			void *out_part = (void*)axis2_wsdl4c_msg_get_message_part_a_index(wsdl4c_msg, i);
+			void *element = (void*)axis2_wsdl4c_part_element(out_part);
 			axis2_char_t *name = axis2_wsdl4c_element_get_name(element);
 			reference_qname = axis2_qname_create(env, name, NULL, NULL);
 			if(!reference_qname) return AXIS2_FAILURE;

Modified: webservices/axis2/trunk/c/modules/xml/attachments/data_handler.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/attachments/data_handler.c?rev=389838&r1=389837&r2=389838&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/attachments/data_handler.c (original)
+++ webservices/axis2/trunk/c/modules/xml/attachments/data_handler.c Wed Mar 29 09:16:56 2006
@@ -179,6 +179,7 @@
               }
           }
 	*/  
+    return AXIS2_SUCCESS;
 }
 
 /* Private Functions */
@@ -371,11 +372,8 @@
 257         return dch;
 258     }
 259 
-260     /**
 261      * This is used to check if the DataContentHandlerFactory has been changed.
 262      * This is not specified behaviour but this check is required to make this work like the RI.
-263      */
-/*
 264     private DataContentHandlerFactory originalFactory;
 265 
 266     {
@@ -386,14 +384,11 @@
 271 
 272     private static DataContentHandlerFactory factory;
 273 
-274     /**
 275      * Set the DataContentHandlerFactory to use.
 276      * If this method has already been called then an Error is raised.
 277      *
 278      * @param newFactory the new factory
 279      * @throws SecurityException if the caller does not have "SetFactory" RuntimePermission
-280      */
-/*
 281     public static synchronized void setDataContentHandlerFactory(DataContentHandlerFactory newFactory) {
 282         if (factory != null) {
 283             throw new Error("javax.activation.DataHandler.setDataContentHandlerFactory has already been defined");

Modified: webservices/axis2/trunk/c/modules/xml/attachments/mime_body_part.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/attachments/mime_body_part.c?rev=389838&r1=389837&r2=389838&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/attachments/mime_body_part.c (original)
+++ webservices/axis2/trunk/c/modules/xml/attachments/mime_body_part.c Wed Mar 29 09:16:56 2006
@@ -116,8 +116,9 @@
 axis2_mime_body_part_add_header (axis2_mime_body_part_t *mime_body_part, axis2_env_t **env,
     axis2_char_t *name, axis2_char_t *value) 
 {
-	AXIS2_ENV_CHECK(env, NULL);
+	AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 	/* headers.addHeader(name, value);     */
+    return AXIS2_SUCCESS;
 }
 
 /**
@@ -130,7 +131,7 @@
 axis2_status_t AXIS2_CALL
 axis2_mime_body_part_set_data_handler (axis2_mime_body_part_t *mime_body_part, axis2_env_t **env, axis2_data_handler_t *data_handler) 
 {
-	AXIS2_ENV_CHECK(env, NULL);
+	AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return AXIS2_SUCCESS;
 
 	/*** 
@@ -145,7 +146,7 @@
                                 axis2_byte_t **output_stream, int *output_stream_size, 
                                 axis2_char_t *ignore_list) 
 {
-	AXIS2_ENV_CHECK(env, NULL);
+	AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return AXIS2_SUCCESS;
 }
 

Modified: webservices/axis2/trunk/c/modules/xml/om/om_text.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/om_text.c?rev=389838&r1=389837&r2=389838&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/om_text.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/om_text.c Wed Mar 29 09:16:56 2006
@@ -251,7 +251,6 @@
     axis2_char_t *attribute_value = NULL;
     axis2_char_t *text = NULL;
     axis2_bool_t om_output_is_optimized = AXIS2_FALSE;
-    axis2_xml_writer_t *xml_writer = NULL;
     axis2_xml_writer_t *om_output_xml_writer = NULL;
     
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);

Modified: webservices/axis2/trunk/c/modules/xml/parser/libxml2/libxml2_reader_wrapper.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/parser/libxml2/libxml2_reader_wrapper.c?rev=389838&r1=389837&r2=389838&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/parser/libxml2/libxml2_reader_wrapper.c (original)
+++ webservices/axis2/trunk/c/modules/xml/parser/libxml2/libxml2_reader_wrapper.c Wed Mar 29 09:16:56 2006
@@ -862,7 +862,7 @@
     axis2_libxml2_reader_wrapper_impl_t *reader_impl = NULL;
     AXIS2_ENV_CHECK( env, NULL);
     reader_impl = AXIS2_INTF_TO_IMPL(parser);
-    return xmlTextReaderConstEncoding(reader_impl->reader);
+    return (axis2_char_t*)xmlTextReaderConstEncoding(reader_impl->reader);
 }                                           
 
 axis2_status_t axis2_libxml2_reader_wrapper_fill_maps(axis2_xml_reader_t *parser,

Modified: webservices/axis2/trunk/c/test/unit/util/util_hash_test.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/util/util_hash_test.c?rev=389838&r1=389837&r2=389838&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/util/util_hash_test.c (original)
+++ webservices/axis2/trunk/c/test/unit/util/util_hash_test.c Wed Mar 29 09:16:56 2006
@@ -56,7 +56,7 @@
 
     axis2_hash_index_t *index_i= 0;
     void *v = NULL;
-    char *k = NULL;
+    const void *k = NULL;
 
     char *key = NULL;
     char *key1 = "key1";

Modified: webservices/axis2/trunk/c/test/unit/util/util_log_test.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/util/util_log_test.c?rev=389838&r1=389837&r2=389838&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/util/util_log_test.c (original)
+++ webservices/axis2/trunk/c/test/unit/util/util_log_test.c Wed Mar 29 09:16:56 2006
@@ -21,7 +21,7 @@
     axis2_env_t *env = axis2_env_create_with_error_log(allocator, error, log);
     axis2_stream_t *stream = axis2_stream_create_basic(&env);
 
-    char *expected = strdup("aaaaaaaaa");
+    char *expected = (char*)strdup("aaaaaaaaa");
     AXIS2_STREAM_WRITE(stream, &env, "aaaaaaaaa", 10);
     AXIS2_STREAM_READ(stream, &env,  actual, 10);
     AXIS2_LOG_WRITE(env->log, actual, 10);

Modified: webservices/axis2/trunk/c/test/unit/xml/om/main.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/xml/om/main.c?rev=389838&r1=389837&r2=389838&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/xml/om/main.c (original)
+++ webservices/axis2/trunk/c/test/unit/xml/om/main.c Wed Mar 29 09:16:56 2006
@@ -9,7 +9,6 @@
     CuSuiteRun(suite);
     CuSuiteSummary(suite, output);
     CuSuiteDetails(suite, output);
-    printf("%s\n", output->buffer);
 }
 
 int main(void) {