You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Michi Mutsuzaki (JIRA)" <ji...@apache.org> on 2012/05/08 01:41:48 UTC

[jira] [Commented] (ZOOKEEPER-1463) external inline function is not compatible with C99

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13270090#comment-13270090 ] 

Michi Mutsuzaki commented on ZOOKEEPER-1463:
--------------------------------------------

Hi Michael,

Would you like to submit a patch for this?

Thanks!
--Michi
                
> external inline function is not compatible with C99
> ---------------------------------------------------
>
>                 Key: ZOOKEEPER-1463
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1463
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 3.4.3, 3.3.5
>         Environment: debian linux x64
>            Reporter: Michael Hu
>              Labels: external, inline
>   Original Estimate: 0.1h
>  Remaining Estimate: 0.1h
>
> There is a use of external inline function in zookeeper hashtable_itr.h file, which is not compatible with C99. This causes problem when compiling with other library like code coverage library.
> ---
> hashtable_itr.h:37: error: 'cov_v_cab2c78b' is static but used in inline
> function 'hashtable_iterator_key' which is not static
> ---
> The easy fix would be put the following line in hashtable_itr.c which ignores this inline warning.
> #pragma GCC diagnostic ignored "-Winline"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira