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 "Allen Wittenauer (JIRA)" <ji...@apache.org> on 2009/09/17 00:21:58 UTC
[jira] Created: (HADOOP-6262) __PRETTY_FUNCTION__ is a GNU
extension and not portable
__PRETTY_FUNCTION__ is a GNU extension and not portable
-------------------------------------------------------
Key: HADOOP-6262
URL: https://issues.apache.org/jira/browse/HADOOP-6262
Project: Hadoop Common
Issue Type: Bug
Reporter: Allen Wittenauer
SerialUtils.hh uses __PRETTY_FUNCTION__ to print the name of the function during an assertion. That is a GNU extension and is not portable across compilers. [C99 defines __func__, which should probably be used instead.]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-6262) SerialUtils.hh: __PRETTY_FUNCTION__
is a GNU extension and not portable
Posted by "Allen Wittenauer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allen Wittenauer updated HADOOP-6262:
-------------------------------------
Summary: SerialUtils.hh: __PRETTY_FUNCTION__ is a GNU extension and not portable (was: __PRETTY_FUNCTION__ is a GNU extension and not portable)
> SerialUtils.hh: __PRETTY_FUNCTION__ is a GNU extension and not portable
> -----------------------------------------------------------------------
>
> Key: HADOOP-6262
> URL: https://issues.apache.org/jira/browse/HADOOP-6262
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Allen Wittenauer
>
> SerialUtils.hh uses __PRETTY_FUNCTION__ to print the name of the function during an assertion. That is a GNU extension and is not portable across compilers. [C99 defines __func__, which should probably be used instead.]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-6262) __PRETTY_FUNCTION__ is a GNU
extension and not portable
Posted by "Allen Wittenauer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-6262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12756257#action_12756257 ]
Allen Wittenauer commented on HADOOP-6262:
------------------------------------------
altho given how small the C part of the code base is and that C99 is still sort of tricky, may be better to just drop it altogether.
> __PRETTY_FUNCTION__ is a GNU extension and not portable
> -------------------------------------------------------
>
> Key: HADOOP-6262
> URL: https://issues.apache.org/jira/browse/HADOOP-6262
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Allen Wittenauer
>
> SerialUtils.hh uses __PRETTY_FUNCTION__ to print the name of the function during an assertion. That is a GNU extension and is not portable across compilers. [C99 defines __func__, which should probably be used instead.]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.