You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Noah Watkins (JIRA)" <ji...@apache.org> on 2010/12/07 22:51:09 UTC

[jira] Created: (HADOOP-7059) Remove "unused" warning in native code

Remove "unused" warning in native code
--------------------------------------

                 Key: HADOOP-7059
                 URL: https://issues.apache.org/jira/browse/HADOOP-7059
             Project: Hadoop Common
          Issue Type: Improvement
          Components: native
    Affects Versions: 0.21.0
            Reporter: Noah Watkins


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.

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


[jira] Updated: (HADOOP-7059) Remove "unused" warning in native code

Posted by "Eli Collins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eli Collins updated HADOOP-7059:
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.23.0
         Assignee: Noah Watkins
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

I double checked the native build and committed this. Thanks Noah!

> Remove "unused" warning in native code
> --------------------------------------
>
>                 Key: HADOOP-7059
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7059
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: native
>    Affects Versions: 0.21.0
>            Reporter: Noah Watkins
>            Assignee: Noah Watkins
>             Fix For: 0.23.0
>
>         Attachments: HADOOP-7059-1.patch
>
>
> 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.

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


[jira] Updated: (HADOOP-7059) Remove "unused" warning in native code

Posted by "Noah Watkins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noah Watkins updated HADOOP-7059:
---------------------------------

    Attachment:     (was: HADOOP-7059-1.patch)

> Remove "unused" warning in native code
> --------------------------------------
>
>                 Key: HADOOP-7059
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7059
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: native
>    Affects Versions: 0.21.0
>            Reporter: Noah Watkins
>         Attachments: HADOOP-7059-1.patch
>
>
> 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.

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


[jira] Closed: (HADOOP-7059) Remove "unused" warning in native code

Posted by "Eli Collins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eli Collins closed HADOOP-7059.
-------------------------------


> Remove "unused" warning in native code
> --------------------------------------
>
>                 Key: HADOOP-7059
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7059
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: native
>    Affects Versions: 0.21.0
>            Reporter: Noah Watkins
>            Assignee: Noah Watkins
>             Fix For: 0.23.0
>
>         Attachments: HADOOP-7059-1.patch
>
>
> 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.

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


[jira] Updated: (HADOOP-7059) Remove "unused" warning in native code

Posted by "Noah Watkins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noah Watkins updated HADOOP-7059:
---------------------------------

    Attachment: HADOOP-7059-1.patch

> Remove "unused" warning in native code
> --------------------------------------
>
>                 Key: HADOOP-7059
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7059
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: native
>    Affects Versions: 0.21.0
>            Reporter: Noah Watkins
>         Attachments: HADOOP-7059-1.patch
>
>
> 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.

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


[jira] Updated: (HADOOP-7059) Remove "unused" warning in native code

Posted by "Noah Watkins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noah Watkins updated HADOOP-7059:
---------------------------------

    Release Note: Adds __attribute__ ((unused))
          Status: Patch Available  (was: Open)

> Remove "unused" warning in native code
> --------------------------------------
>
>                 Key: HADOOP-7059
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7059
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: native
>    Affects Versions: 0.21.0
>            Reporter: Noah Watkins
>
> 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.

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


[jira] Commented: (HADOOP-7059) Remove "unused" warning in native code

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969040#action_12969040 ] 

Hadoop QA commented on HADOOP-7059:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12465741/HADOOP-7059-1.patch
  against trunk revision 1043117.

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    -1 patch.  The patch command could not apply the patch.

Console output: https://hudson.apache.org/hudson/job/PreCommit-HADOOP-Build/134//console

This message is automatically generated.

> Remove "unused" warning in native code
> --------------------------------------
>
>                 Key: HADOOP-7059
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7059
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: native
>    Affects Versions: 0.21.0
>            Reporter: Noah Watkins
>         Attachments: HADOOP-7059-1.patch
>
>
> 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.

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


[jira] Updated: (HADOOP-7059) Remove "unused" warning in native code

Posted by "Noah Watkins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noah Watkins updated HADOOP-7059:
---------------------------------

    Attachment:     (was: HADOOP-7059-1.patch)

> Remove "unused" warning in native code
> --------------------------------------
>
>                 Key: HADOOP-7059
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7059
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: native
>    Affects Versions: 0.21.0
>            Reporter: Noah Watkins
>
> 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.

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


[jira] Updated: (HADOOP-7059) Remove "unused" warning in native code

Posted by "Noah Watkins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noah Watkins updated HADOOP-7059:
---------------------------------

    Attachment: HADOOP-7059-1.patch

> Remove "unused" warning in native code
> --------------------------------------
>
>                 Key: HADOOP-7059
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7059
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: native
>    Affects Versions: 0.21.0
>            Reporter: Noah Watkins
>         Attachments: HADOOP-7059-1.patch
>
>
> 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.

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


[jira] Commented: (HADOOP-7059) Remove "unused" warning in native code

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970594#action_12970594 ] 

Hudson commented on HADOOP-7059:
--------------------------------

Integrated in Hadoop-Common-trunk #543 (See [https://hudson.apache.org/hudson/job/Hadoop-Common-trunk/543/])
    HADOOP-7059. Remove "unused" warning in native code. Contributed by Noah Watkins


> Remove "unused" warning in native code
> --------------------------------------
>
>                 Key: HADOOP-7059
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7059
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: native
>    Affects Versions: 0.21.0
>            Reporter: Noah Watkins
>            Assignee: Noah Watkins
>             Fix For: 0.23.0
>
>         Attachments: HADOOP-7059-1.patch
>
>
> 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.

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


[jira] Commented: (HADOOP-7059) Remove "unused" warning in native code

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969036#action_12969036 ] 

Hadoop QA commented on HADOOP-7059:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org
  against trunk revision 1043117.

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    -1 patch.  The patch command could not apply the patch.

Console output: https://hudson.apache.org/hudson/job/PreCommit-HADOOP-Build/133//console

This message is automatically generated.

> Remove "unused" warning in native code
> --------------------------------------
>
>                 Key: HADOOP-7059
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7059
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: native
>    Affects Versions: 0.21.0
>            Reporter: Noah Watkins
>         Attachments: HADOOP-7059-1.patch
>
>
> 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.

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


[jira] Commented: (HADOOP-7059) Remove "unused" warning in native code

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970568#action_12970568 ] 

Hudson commented on HADOOP-7059:
--------------------------------

Integrated in Hadoop-Common-trunk-Commit #457 (See [https://hudson.apache.org/hudson/job/Hadoop-Common-trunk-Commit/457/])
    HADOOP-7059. Remove "unused" warning in native code. Contributed by Noah Watkins


> Remove "unused" warning in native code
> --------------------------------------
>
>                 Key: HADOOP-7059
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7059
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: native
>    Affects Versions: 0.21.0
>            Reporter: Noah Watkins
>            Assignee: Noah Watkins
>             Fix For: 0.23.0
>
>         Attachments: HADOOP-7059-1.patch
>
>
> 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.

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


[jira] Commented: (HADOOP-7059) Remove "unused" warning in native code

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969060#action_12969060 ] 

Hadoop QA commented on HADOOP-7059:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12465745/HADOOP-7059-1.patch
  against trunk revision 1043117.

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    +1 core tests.  The patch passed core unit tests.

    +1 contrib tests.  The patch passed contrib unit tests.

    +1 system test framework.  The patch passed system test framework compile.

Test results: https://hudson.apache.org/hudson/job/PreCommit-HADOOP-Build/135//testReport/
Findbugs warnings: https://hudson.apache.org/hudson/job/PreCommit-HADOOP-Build/135//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Console output: https://hudson.apache.org/hudson/job/PreCommit-HADOOP-Build/135//console

This message is automatically generated.

> Remove "unused" warning in native code
> --------------------------------------
>
>                 Key: HADOOP-7059
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7059
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: native
>    Affects Versions: 0.21.0
>            Reporter: Noah Watkins
>         Attachments: HADOOP-7059-1.patch
>
>
> 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.

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


[jira] Commented: (HADOOP-7059) Remove "unused" warning in native code

Posted by "Eli Collins (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-7059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970556#action_12970556 ] 

Eli Collins commented on HADOOP-7059:
-------------------------------------

+1

> Remove "unused" warning in native code
> --------------------------------------
>
>                 Key: HADOOP-7059
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7059
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: native
>    Affects Versions: 0.21.0
>            Reporter: Noah Watkins
>         Attachments: HADOOP-7059-1.patch
>
>
> 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.

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


[jira] Updated: (HADOOP-7059) Remove "unused" warning in native code

Posted by "Noah Watkins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-7059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noah Watkins updated HADOOP-7059:
---------------------------------

    Attachment: HADOOP-7059-1.patch

> Remove "unused" warning in native code
> --------------------------------------
>
>                 Key: HADOOP-7059
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7059
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: native
>    Affects Versions: 0.21.0
>            Reporter: Noah Watkins
>         Attachments: HADOOP-7059-1.patch
>
>
> 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.

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