eina: fix some warning.

SVN revision: 83196
This commit is contained in:
Cedric BAIL 2013-01-24 02:58:00 +00:00
parent b1d856bc8b
commit eff597ea1e
3 changed files with 6 additions and 2 deletions

View File

@ -31,6 +31,10 @@
#include "eina_cow.h"
#ifndef NVALGRIND
# include <memcheck.h>
#endif
#define EINA_COW_MAGIC 0xDEADBEEF
// #define MOO // Define that one if you want magic debug for Eina_Cow_Ptr

View File

@ -286,7 +286,7 @@ eina_magic_fail(void *d,
if (m == EINA_MAGIC_NONE)
eina_log_print(EINA_LOG_DOMAIN_GLOBAL, EINA_LOG_LEVEL_CRITICAL,
file, fnc, line,
"*** Eina Magic Check Failed at %d !!!\n"
"*** Eina Magic Check Failed at %p !!!\n"
" Input handle has already been freed!\n"
"*** NAUGHTY PROGRAMMER!!!\n"
"*** SPANK SPANK SPANK!!!\n"

View File

@ -206,12 +206,12 @@ _eina_chained_mempool_alloc_in(Chained_Mempool *pool, Chained_Pool *p)
static Eina_Bool
_eina_chained_mempool_free_in(Chained_Mempool *pool, Chained_Pool *p, void *ptr)
{
#ifdef DEBUG
void *pmem;
// pool mem base
pmem = (void *)(((unsigned char *)p) + sizeof(Chained_Pool));
#ifdef DEBUG
// is it in pool mem?
if (ptr < pmem)
{