summaryrefslogtreecommitdiff
path: root/src/session
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2016-04-21 08:25:20 -0400
committerKeith Bostic <keith@wiredtiger.com>2016-04-21 08:25:20 -0400
commitef16de341e03f712cda287ece7f3a56e7edefecb (patch)
treeef31330901c116e5c1f326a3133d951cb9314cca /src/session
parent59fd2970abb5169462f18779999f750f7c39d069 (diff)
downloadmongo-ef16de341e03f712cda287ece7f3a56e7edefecb.tar.gz
WT-2570: Minor lint cleanups
session_api.c:804:2: warning: Value stored to 'flags' is never read Do session initialization first, do variable initialization in declaration order, it's the pattern.
Diffstat (limited to 'src/session')
-rw-r--r--src/session/session_api.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/session/session_api.c b/src/session/session_api.c
index aa9efac0b92..fd1fcbbe7bd 100644
--- a/src/session/session_api.c
+++ b/src/session/session_api.c
@@ -785,8 +785,8 @@ static int
__session_join(WT_SESSION *wt_session, WT_CURSOR *join_cursor,
WT_CURSOR *ref_cursor, const char *config)
{
- WT_CURSOR *firstcg;
WT_CONFIG_ITEM cval;
+ WT_CURSOR *firstcg;
WT_CURSOR_INDEX *cindex;
WT_CURSOR_JOIN *cjoin;
WT_CURSOR_TABLE *ctable;
@@ -799,13 +799,13 @@ __session_join(WT_SESSION *wt_session, WT_CURSOR *join_cursor,
uint32_t bloom_bit_count, bloom_hash_count;
uint8_t flags, range;
- count = 0;
- firstcg = NULL;
- flags = 0;
- nested = false;
session = (WT_SESSION_IMPL *)wt_session;
SESSION_API_CALL(session, join, config, cfg);
+
+ firstcg = NULL;
table = NULL;
+ nested = false;
+ count = 0;
if (!WT_PREFIX_MATCH(join_cursor->uri, "join:"))
WT_ERR_MSG(session, EINVAL, "not a join cursor");