Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7059

Remove "unused" warning in native code

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.21.0
    • Fix Version/s: 0.23.0
    • Component/s: native
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Adds __attribute__ ((unused))

      Description

      The file:
      src/native/src/org_apache_hadoop.h

      declares the static function "do_dlsym" in the header as non-inline. Files including the header (e.g. for the THROW macro) receive a "defined but unused" warning during compilation.

      This function should either a) be inlined or b) use GCC "unused" attribute.

        Attachments

          Activity

            People

            • Assignee:
              nwatkins Noah Watkins
              Reporter:
              nwatkins Noah Watkins
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: