From b92f78884b03454ebea7bde4b535d1b4b9bb30d3 Mon Sep 17 00:00:00 2001 From: kanoi Date: Fri, 23 Jan 2015 16:49:32 +1100 Subject: [PATCH] ckdb - fix unused variable warnings --- src/ckdb.h | 2 +- src/ckdb_data.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ckdb.h b/src/ckdb.h index e65d48df..27c3a55a 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -52,7 +52,7 @@ #define DB_VLOCK "1" #define DB_VERSION "0.9.6" -#define CKDB_VERSION DB_VERSION"-0.840" +#define CKDB_VERSION DB_VERSION"-0.841" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__ diff --git a/src/ckdb_data.c b/src/ckdb_data.c index d2364c2d..1139f8fc 100644 --- a/src/ckdb_data.c +++ b/src/ckdb_data.c @@ -722,10 +722,10 @@ K_ITEM *_find_create_workerstatus(int64_t userid, char *workername, TODO: combine set_block_share_counters() with this? */ void workerstatus_ready() { - K_TREE_CTX ws_ctx[1], us_ctx[1], ss_ctx[1], ms_ctx[1]; + K_TREE_CTX ws_ctx[1], ss_ctx[1], ms_ctx[1]; K_ITEM *ws_item, us_look, ss_look, *us_item, *ss_item; K_ITEM *ms_item, ms_look, *wm_item; - USERSTATS lookuserstats, *userstats; + USERSTATS *userstats; SHARESUMMARY looksharesummary, *sharesummary; MARKERSUMMARY *markersummary; WORKERSTATUS *workerstatus;