Browse Source

ckdb - remove useless compiler warning

master
kanoi 9 years ago
parent
commit
f5198d027e
  1. 2
      src/ckdb.c
  2. 2
      src/ckdb.h
  3. 4
      src/ckdb_data.c

2
src/ckdb.c

@ -2993,7 +2993,7 @@ static void summarise_blocks()
double diffacc, diffinv, shareacc, shareinv;
tv_t now, elapsed_start, elapsed_finish;
int64_t elapsed, wi_start, wi_finish;
BLOCKS *blocks, *prev_blocks;
BLOCKS *blocks = NULL, *prev_blocks;
WORKINFO *prev_workinfo;
SHARESUMMARY looksharesummary, *sharesummary;
WORKMARKERS lookworkmarkers, *workmarkers;

2
src/ckdb.h

@ -55,7 +55,7 @@
#define DB_VLOCK "1"
#define DB_VERSION "1.0.4"
#define CKDB_VERSION DB_VERSION"-1.600"
#define CKDB_VERSION DB_VERSION"-1.601"
#define WHERE_FFL " - from %s %s() line %d"
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__

4
src/ckdb_data.c

@ -4618,7 +4618,7 @@ static bool gen_workmarkers(PGconn *conn, MARKS *stt, bool after, MARKS *fin,
{
K_ITEM look, *wi_stt_item, *wi_fin_item, *old_wm_item;
WORKMARKERS *old_wm;
WORKINFO workinfo, *wi_stt, *wi_fin;
WORKINFO workinfo, *wi_stt = NULL, *wi_fin;
K_TREE_CTX ctx[1];
char description[TXT_BIG+1];
bool ok;
@ -4731,7 +4731,7 @@ bool workmarkers_generate(PGconn *conn, char *err, size_t siz, char *by,
bool none_error)
{
K_ITEM *m_item, *m_next_item;
MARKS *mused, *mnext;
MARKS *mused = NULL, *mnext;
MARKS marks;
K_TREE_CTX ctx[1];
K_ITEM look;

Loading…
Cancel
Save