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

Samisa Abeysinghe resolved AXIS2C-1337.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.7.0

This has been fixed by someone with the proper use of the return value form 
CHDIR

In this given patch, the use of exit is problematic. Anyway, as this is already 
fixed, I did not apply this patch. 

> Fails to compile if chdir and/or fread declared with warn_unused_result
> -----------------------------------------------------------------------
>
>                 Key: AXIS2C-1337
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1337
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: tcpmon, util
>    Affects Versions: 1.5.0
>         Environment: Ubuntu 9.04 (pre-release)
>            Reporter: Soren Hansen
>             Fix For: 1.7.0
>
>         Attachments: axis2c-warn_unused.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> axis2c fails to compile on Ubuntu 9.04, due to two things:
> In util/src/dir_handler.c, AXIS2_CHDIR's return value is ignored. chdir is 
> declared with warn_unused_result in our toolchain, and you pass -Werror to 
> gcc, so this causes a build failure. Obvisouly, chdir could fail for a number 
> of reasons, and failing to check is a problem.
> The same problem exists in tools/tcpmon/src/tcpmon.c, where the return value 
> of fread is ignored.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to