summaryrefslogtreecommitdiff
path: root/src/txn/txn_ckpt.c
diff options
context:
space:
mode:
authorDavid Hows <howsdav@gmail.com>2016-05-04 15:05:01 +1000
committerAlex Gorrod <alexander.gorrod@mongodb.com>2016-05-04 15:05:01 +1000
commit7deb9c213ba5c866d26dd381e20b632f991eedc9 (patch)
treeeb69194dd641146406fb005b54678c856331723a /src/txn/txn_ckpt.c
parent1778159b319620941823ee8ea73623c92b623c00 (diff)
downloadmongo-7deb9c213ba5c866d26dd381e20b632f991eedc9.tar.gz
WT-2613 Add WT_UNUSED to a variable to fix Windows compilation. (#2717)
Diffstat (limited to 'src/txn/txn_ckpt.c')
-rw-r--r--src/txn/txn_ckpt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/txn/txn_ckpt.c b/src/txn/txn_ckpt.c
index d5c9137c11e..c1b435d9897 100644
--- a/src/txn/txn_ckpt.c
+++ b/src/txn/txn_ckpt.c
@@ -792,6 +792,9 @@ __checkpoint_lock_tree(WT_SESSION_IMPL *session,
hot_backup_locked = false;
name_alloc = NULL;
+ /* Only referenced in diagnostic builds. */
+ WT_UNUSED(is_checkpoint);
+
/*
* Only referenced in diagnostic builds and gcc 5.1 isn't satisfied
* with wrapping the entire assert condition in the unused macro.