fix eina_binshare_add_length() using EINA_PURE.

Amazingly this was caught by a test (eina_binshare_small) that was
failing... Who said we didn't had test?! :-P



SVN revision: 82946
This commit is contained in:
Gustavo Sverzut Barbieri 2013-01-17 20:10:15 +00:00
parent 14ff8920a6
commit 5f8c760406
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@
* @see eina_binshare_add()
*/
EAPI const void *eina_binshare_add_length(const void *obj,
unsigned int olen) EINA_PURE EINA_WARN_UNUSED_RESULT;
unsigned int olen) EINA_WARN_UNUSED_RESULT;
/**
* Increment references of the given shared object.
@ -152,7 +152,7 @@ EAPI void eina_binshare_del(const void *obj);
* @note If the given pointer is not shared, bad things will happen, likely a
* segmentation fault. If in doubt, try strlen().
*/
EAPI int eina_binshare_length(const void *obj) EINA_WARN_UNUSED_RESULT;
EAPI int eina_binshare_length(const void *obj) EINA_WARN_UNUSED_RESULT EINA_PURE;
/**
* @brief Dump the contents of the share_common.