You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "nadir amra (JIRA)" <ji...@apache.org> on 2010/06/02 05:05:40 UTC

[jira] Closed: (AXIS2C-1426) axutil_hash_set() usage require cast (warning on AIX)

     [ https://issues.apache.org/jira/browse/AXIS2C-1426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nadir amra closed AXIS2C-1426.
------------------------------

    Fix Version/s: Current (Nightly)
       Resolution: Fixed

Revision http://svn.apache.org/viewvc?view=revision&revision=950347

> axutil_hash_set() usage require cast (warning on AIX)
> -----------------------------------------------------
>
>                 Key: AXIS2C-1426
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1426
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: httpd module, xml/parser
>    Affects Versions: 1.6.0
>         Environment: AIX 5.2
> Visual Age C++
> ./configure CC=cc CFLAGS=-qnolm CXX=xlC CXXFLAGS=-qnolm --enable-guththila=yes
>            Reporter: Olivier Mengué
>            Priority: Trivial
>             Fix For: Current (Nightly)
>
>
> Warnings are reported by Visual Age C++ on the usage of function axutil_hash_set().
> Directory axiom/src/xpath:
>  cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../src/parser -I../../src/om -I ../../../util/include -I ../../../include -g -D_LARGEFILE64_SOURCE -c -M xpath.c  -DPIC -o .libs/xpath.o
> "xpath.c", line 134.74: 1506-280 (W) Function argument assignment between types "const void*" and "int(*)(struct axiom_xpath_context*,int)" is not allowed.
> "xpath.c", line 146.14: 1506-068 (W) Operation between types "int(*)(struct axiom_xpath_context*,int)" and "void*" is not allowed.
> line 134: axutil_hash_set(context->functions, name, AXIS2_HASH_KEY_STRING, func);
> line 146: func = axutil_hash_get(context->functions, name, AXIS2_HASH_KEY_STRING);
> Directory src/modules/mod_addr:
>  cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../src/core/description -I../../../src/core/context -I../../../src/core/phaseresolver -I../../../src/core/engine -I../../../src/core/deployment -I../../../util/include -I../../../axiom/include -D_LARGEFILE64_SOURCE -DAXIS2_GUTHTHILA_ENABLED -DAXIS2_SVR_MULTI_THREADED -g -D_LARGEFILE64_SOURCE -DAXIS2_GUTHTHILA_ENABLED -DAXIS2_SVR_MULTI_THREADED -c -M mod_addr.c  -DPIC -o .libs/mod_addr.o
> "mod_addr.c", line 112.44: 1506-280 (W) Function argument assignment between types "const void*" and "struct axis2_handler*(*)(const struct axutil_env*,struct axutil_string*)" is not allowed.
> "mod_addr.c", line 115.44: 1506-280 (W) Function argument assignment between types "const void*" and "struct axis2_handler*(*)(const struct axutil_env*,struct axutil_string*)" is not allowed.
>     axutil_hash_set(module->handler_create_func_map, ADDR_IN_HANDLER,
>                     AXIS2_HASH_KEY_STRING, axis2_addr_in_handler_create);
>     axutil_hash_set(module->handler_create_func_map, ADDR_OUT_HANDLER,
>                     AXIS2_HASH_KEY_STRING, axis2_addr_out_handler_create);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org