[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Hu updated ZOOKEEPER-1463:
----------------------------------

          Description: 
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"

  was:
There is a use of external inline function, which is not in standard in C99, in 
zookeeper hashtable_itr.h file. 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 is to 
ignore this non-standard function.
#pragma GCC diagnostic ignored "-Winline"


    Affects Version/s: 3.3.5
    
> 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

        

Reply via email to