From e4f1c8abe82746fda97f7e99f047c5979fdb905d Mon Sep 17 00:00:00 2001 From: barbieri Date: Wed, 9 Sep 2009 01:27:30 +0000 Subject: [PATCH] remove easy warnings, 2 still left that I need someone else to check proper fix. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@42358 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/eina_tiler.c | 9 +++++++-- src/tests/eina_bench.c | 2 +- src/tests/eina_bench_hash.c | 2 +- src/tests/eina_bench_mempool.c | 3 +-- src/tests/eina_bench_rectangle_pool.c | 4 +--- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/lib/eina_tiler.c b/src/lib/eina_tiler.c index 0e444c7..daf2ab5 100644 --- a/src/lib/eina_tiler.c +++ b/src/lib/eina_tiler.c @@ -464,6 +464,7 @@ static inline int _split_fuzzy(list_t *dirty, const rect_t a, rect_t *b) return action; } +#if 0 static void rect_list_node_pool_set_max(int max) { int diff; @@ -482,6 +483,7 @@ static void rect_list_node_pool_set_max(int max) list_node_pool.max = max; } +#endif static void rect_list_node_pool_flush(void) { @@ -511,6 +513,7 @@ static inline void rect_list_node_pool_put(list_node_t *node) free(node); } +#if 0 static void rect_print(const rect_t r) { printf("", r.left, r.top, r.width, r.height); @@ -543,7 +546,7 @@ static void rect_list_print(const list_t rects) } printf("]\n"); } - +#endif static inline list_node_t * rect_list_unlink_next(list_t *rects, list_node_t *parent_node) @@ -643,6 +646,7 @@ static void rect_list_del_split_strict(list_t *rects, const rect_t del_r) 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 @@ static void rect_list_add_split_strict(list_t *rects, list_node_t *node) 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 @@ static inline void _splitter_del(Eina_Tiler *t) 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; diff --git a/src/tests/eina_bench.c b/src/tests/eina_bench.c index 85d3523..684376f 100644 --- a/src/tests/eina_bench.c +++ b/src/tests/eina_bench.c @@ -25,7 +25,7 @@ #include #include "eina_bench.h" -#include "eina_mempool.h" +#include "Eina.h" typedef struct _Eina_Benchmark_Case Eina_Benchmark_Case; struct _Eina_Benchmark_Case diff --git a/src/tests/eina_bench_hash.c b/src/tests/eina_bench_hash.c index 6352e18..268bf9a 100644 --- a/src/tests/eina_bench_hash.c +++ b/src/tests/eina_bench_hash.c @@ -162,7 +162,7 @@ eina_bench_lookup_djb2(int request) tmp_val = malloc(sizeof (int)); - if (!tmp_key || !tmp_val) continue ; + if (!tmp_val) continue ; eina_convert_itoa(i, tmp_key); *tmp_val = i; diff --git a/src/tests/eina_bench_mempool.c b/src/tests/eina_bench_mempool.c index e5e3bfa..eb036a9 100644 --- a/src/tests/eina_bench_mempool.c +++ b/src/tests/eina_bench_mempool.c @@ -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) diff --git a/src/tests/eina_bench_rectangle_pool.c b/src/tests/eina_bench_rectangle_pool.c index b34b374..1214c75 100644 --- a/src/tests/eina_bench_rectangle_pool.c +++ b/src/tests/eina_bench_rectangle_pool.c @@ -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_bench_eina_rectangle_pool(int request) eina_list_free(list); eina_shutdown(); - eina_shutdown(); } void eina_bench_rectangle_pool(Eina_Benchmark *bench) -- 2.7.4