summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Friloux <guillaume@friloux.me>2014-06-06 12:02:15 +0200
committerGuillaume Friloux <guillaume@friloux.me>2014-06-06 12:02:15 +0200
commitd0d92275a612b5592d2c96bc4a00e05414488713 (patch)
treec94c7e4b8c8ffbc5f0ea376eaaf32d1161c84bf5
parent41796e595fdc493f807fbb5815765a3a7e16bd23 (diff)
Fix warnings with clang.
-rw-r--r--src/lib/esql.c2
-rw-r--r--src/lib/esql_pool.c2
-rw-r--r--src/lib/esql_res.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/esql.c b/src/lib/esql.c
index 2e7978d..b696b9d 100644
--- a/src/lib/esql.c
+++ b/src/lib/esql.c
@@ -132,7 +132,7 @@ eina_fail:
132int 132int
133esql_shutdown(void) 133esql_shutdown(void)
134{ 134{
135 Esql_Module *mod; 135 Esql_Module *mod = NULL;
136 Eina_Inlist *ll; 136 Eina_Inlist *ll;
137 if (--esql_init_count_ != 0) 137 if (--esql_init_count_ != 0)
138 return esql_init_count_; 138 return esql_init_count_;
diff --git a/src/lib/esql_pool.c b/src/lib/esql_pool.c
index 28cf8ac..c4d634d 100644
--- a/src/lib/esql_pool.c
+++ b/src/lib/esql_pool.c
@@ -69,7 +69,7 @@ esql_pool_rebalance(Esql_Pool *ep, Esql *e /* idle connection */)
69void 69void
70esql_pool_free(Esql_Pool *ep) 70esql_pool_free(Esql_Pool *ep)
71{ 71{
72 Esql *e; 72 Esql *e = NULL;
73 Eina_Inlist *l; 73 Eina_Inlist *l;
74 74
75 EINA_INLIST_FOREACH_SAFE(ep->esqls, l, e) 75 EINA_INLIST_FOREACH_SAFE(ep->esqls, l, e)
diff --git a/src/lib/esql_res.c b/src/lib/esql_res.c
index 918492f..7ea1793 100644
--- a/src/lib/esql_res.c
+++ b/src/lib/esql_res.c
@@ -63,7 +63,7 @@ esql_row_free(Esql_Row *r)
63static void 63static void
64_esql_res_free(Esql_Res *res) 64_esql_res_free(Esql_Res *res)
65{ 65{
66 Esql_Row *r; 66 Esql_Row *r = NULL;
67 Eina_Inlist *l; 67 Eina_Inlist *l;
68 68
69 DBG("res=%p (refcount=%d)", res, res->refcount); 69 DBG("res=%p (refcount=%d)", res, res->refcount);