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

View File

@ -139,6 +139,8 @@ eina_bench_lookup_rbtree(int request)
EINA_RBTREE_CMP_KEY_CB( EINA_RBTREE_CMP_KEY_CB(
_eina_bench_rbtree_key), _eina_bench_rbtree_key),
NULL); 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); 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); tmp = eina_stringshare_add(build);
} }
/* Suppress warnings as we really don't want to do anything. */
(void) tmp;
eina_shutdown(); eina_shutdown();
} }
@ -125,6 +127,9 @@ eina_bench_evas_job(int request)
eina_convert_xtoa(rand() % request, build + 7); eina_convert_xtoa(rand() % request, build + 7);
tmp = evas_stringshare_add(build); tmp = evas_stringshare_add(build);
} }
/* Suppress warnings as we really don't want to do anything. */
(void) tmp;
} }
static void static void
@ -155,6 +160,9 @@ eina_bench_ecore_job(int request)
tmp = ecore_string_instance(build); tmp = ecore_string_instance(build);
} }
/* Suppress warnings as we really don't want to do anything. */
(void) tmp;
ecore_string_shutdown(); ecore_string_shutdown();
} }

View File

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

View File

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