Eina benchmark: Fixed compilation warnings.

SVN revision: 67230
This commit is contained in:
Tom Hacohen 2012-01-15 11:20:59 +00:00
parent e420ea7505
commit 3b5505aaaa
5 changed files with 13 additions and 4 deletions

View File

@ -73,7 +73,6 @@ int
main(int argc, char **argv)
{
Eina_Benchmark *test;
Eina_Array *ea;
unsigned int i;
if (argc != 2)
@ -91,7 +90,7 @@ main(int argc, char **argv)
etc[i].build(test);
ea = eina_benchmark_run(test);
eina_benchmark_run(test);
eina_benchmark_free(test);
}

View File

@ -139,6 +139,8 @@ eina_bench_lookup_rbtree(int request)
EINA_RBTREE_CMP_KEY_CB(
_eina_bench_rbtree_key),
NULL);
/* Suppress warnings as we really don't want to do anything. */
(void) tmp;
}
eina_rbtree_delete(root, EINA_RBTREE_FREE_CB(_eina_bench_rbtree_free), NULL);

View File

@ -64,6 +64,8 @@ eina_bench_stringshare_job(int request)
tmp = eina_stringshare_add(build);
}
/* Suppress warnings as we really don't want to do anything. */
(void) tmp;
eina_shutdown();
}
@ -125,6 +127,9 @@ eina_bench_evas_job(int request)
eina_convert_xtoa(rand() % request, build + 7);
tmp = evas_stringshare_add(build);
}
/* Suppress warnings as we really don't want to do anything. */
(void) tmp;
}
static void
@ -155,6 +160,9 @@ eina_bench_ecore_job(int request)
tmp = ecore_string_instance(build);
}
/* Suppress warnings as we really don't want to do anything. */
(void) tmp;
ecore_string_shutdown();
}

View File

@ -962,7 +962,7 @@ evas_list_sort(Evas_List *list, int size, int (*func)(void *, void *))
Evas_List *last;
unsigned int list_number;
unsigned int middle;
int list_size;
unsigned int list_size;
if (!list || !func)
return NULL;

View File

@ -56,7 +56,7 @@ _evas_mp_pool_free(Pool *p)
}
void *
evas_mempool_malloc(Evas_Mempool *pool, int size)
evas_mempool_malloc(Evas_Mempool *pool, int size __UNUSED__)
{
#ifdef NOPOOL
return malloc(size);