Eina benchmark: Fixed compilation warnings.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 15 Jan 2012 11:20:59 +0000 (11:20 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 15 Jan 2012 11:20:59 +0000 (11:20 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67230 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/tests/eina_bench.c
src/tests/eina_bench_hash.c
src/tests/eina_bench_stringshare.c
src/tests/evas_list.c
src/tests/evas_mempool.c

index a4eadbe..03aaaf9 100644 (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);
      }
index 5b42318..0429097 100644 (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);
index a2c7b38..22d18fa 100644 (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();
 }
 
index 55e301f..3df15ed 100644 (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;
index fbc48fa..7098214 100644 (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);