From: Enlightenment S. <no-...@en...> - 2009-09-09 01:27:43
|
Log: remove easy warnings, 2 still left that I need someone else to check proper fix. Author: barbieri Date: 2009-09-08 18:27:30 -0700 (Tue, 08 Sep 2009) New Revision: 42358 Modified: trunk/eina/src/lib/eina_tiler.c trunk/eina/src/tests/eina_bench.c trunk/eina/src/tests/eina_bench_hash.c trunk/eina/src/tests/eina_bench_mempool.c trunk/eina/src/tests/eina_bench_rectangle_pool.c Modified: trunk/eina/src/lib/eina_tiler.c =================================================================== --- trunk/eina/src/lib/eina_tiler.c 2009-09-09 01:17:37 UTC (rev 42357) +++ trunk/eina/src/lib/eina_tiler.c 2009-09-09 01:27:30 UTC (rev 42358) @@ -464,6 +464,7 @@ return action; } +#if 0 static void rect_list_node_pool_set_max(int max) { int diff; @@ -482,6 +483,7 @@ list_node_pool.max = max; } +#endif static void rect_list_node_pool_flush(void) { @@ -511,6 +513,7 @@ free(node); } +#if 0 static void rect_print(const rect_t r) { printf("<rect(%d, %d, %d, %d)>", r.left, r.top, r.width, r.height); @@ -543,8 +546,8 @@ } printf("]\n"); } +#endif - static inline list_node_t * rect_list_unlink_next(list_t *rects, list_node_t *parent_node) { @@ -643,6 +646,7 @@ rect_list_concat(rects, &modified); } +#if 0 static void rect_list_add_split_strict(list_t *rects, list_node_t *node) { list_t dirty = list_zeroed; @@ -711,6 +715,7 @@ cur_node = cur_node->next; } } +#endif static list_node_t * rect_list_add_split_fuzzy(list_t *rects, list_node_t *node, int accepted_error) @@ -984,7 +989,7 @@ rect_list_node_pool_flush(); } -static inline void _splitter_tile_size_set(Eina_Tiler *t, int w, int h) +static inline void _splitter_tile_size_set(Eina_Tiler *t, int w __UNUSED__, int h __UNUSED__) { /* TODO are w and h used for something? */ t->splitter.rects = list_zeroed; Modified: trunk/eina/src/tests/eina_bench.c =================================================================== --- trunk/eina/src/tests/eina_bench.c 2009-09-09 01:17:37 UTC (rev 42357) +++ trunk/eina/src/tests/eina_bench.c 2009-09-09 01:27:30 UTC (rev 42358) @@ -25,7 +25,7 @@ #include <limits.h> #include "eina_bench.h" -#include "eina_mempool.h" +#include "Eina.h" typedef struct _Eina_Benchmark_Case Eina_Benchmark_Case; struct _Eina_Benchmark_Case Modified: trunk/eina/src/tests/eina_bench_hash.c =================================================================== --- trunk/eina/src/tests/eina_bench_hash.c 2009-09-09 01:17:37 UTC (rev 42357) +++ trunk/eina/src/tests/eina_bench_hash.c 2009-09-09 01:27:30 UTC (rev 42358) @@ -162,7 +162,7 @@ tmp_val = malloc(sizeof (int)); - if (!tmp_key || !tmp_val) continue ; + if (!tmp_val) continue ; eina_convert_itoa(i, tmp_key); *tmp_val = i; Modified: trunk/eina/src/tests/eina_bench_mempool.c =================================================================== --- trunk/eina/src/tests/eina_bench_mempool.c 2009-09-09 01:17:37 UTC (rev 42357) +++ trunk/eina/src/tests/eina_bench_mempool.c 2009-09-09 01:27:30 UTC (rev 42358) @@ -25,8 +25,7 @@ #endif #include "eina_bench.h" -#include "eina_array.h" -#include "eina_mempool.h" +#include "Eina.h" static void _eina_mempool_bench(Eina_Mempool *mp, int request) Modified: trunk/eina/src/tests/eina_bench_rectangle_pool.c =================================================================== --- trunk/eina/src/tests/eina_bench_rectangle_pool.c 2009-09-09 01:17:37 UTC (rev 42357) +++ trunk/eina/src/tests/eina_bench_rectangle_pool.c 2009-09-09 01:27:30 UTC (rev 42358) @@ -21,8 +21,7 @@ #endif #include "eina_bench.h" -#include "eina_rectangle.h" -#include "eina_list.h" +#include "Eina.h" static void eina_bench_eina_rectangle_pool(int request) @@ -64,7 +63,6 @@ eina_list_free(list); eina_shutdown(); - eina_shutdown(); } void eina_bench_rectangle_pool(Eina_Benchmark *bench) |