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

Maxim P. Dementiev updated ZOOKEEPER-184:
-----------------------------------------

    Description: 
Some compilation environments provide implicit inclusion of certain system 
headers.
But any way it's not a reason to exploit it in platform-independent projects.

TestHashtable.cc and LibCMocks.h from src/c/tests/ use those functions without 
including corresponding system headers.

Modern versions of GCC are very strict.
You cannot build the code like this with the help of GCC version 4.3.

  was:
Some compilation environments provide implicit inclusion of certain system 
headers.
But any way it's not a reason to exploit it in platform-independent projects.

TestHashtable.cc and LibCMocks.h from src/c/tests/ use those functions without 
including corresponding system headers.


> tests: An explicit include derective is needed for the usage of memcpy(), 
> memset(), strlen(), strdup() and free() functions.
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-184
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-184
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: c client
>         Environment: Linux
>            Reporter: Maxim P. Dementiev
>         Attachments: ZOOKEEPER-184.patch
>
>
> Some compilation environments provide implicit inclusion of certain system 
> headers.
> But any way it's not a reason to exploit it in platform-independent projects.
> TestHashtable.cc and LibCMocks.h from src/c/tests/ use those functions 
> without including corresponding system headers.
> Modern versions of GCC are very strict.
> You cannot build the code like this with the help of GCC version 4.3.

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

Reply via email to