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

Remove "unused" warning in native code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.21.0
    • 0.23.0
    • native
    • None
    • Reviewed
    • 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

        1. HADOOP-7059-1.patch
          0.6 kB
          Noah Watkins

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: