Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1337

Fails to compile if chdir and/or fread declared with warn_unused_result

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.7.0
    • tcpmon, util
    • None
    • Ubuntu 9.04 (pre-release)

    Description

      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.

      Attachments

        1. axis2c-warn_unused.patch
          2 kB
          Danny Sung

        Activity

          People

            Unassigned Unassigned
            soren Soren Lassen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified