diff options
author | David Hows <howsdav@gmail.com> | 2016-05-04 15:05:01 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2016-06-01 12:47:25 +1000 |
commit | 234b68b1163d050f5deeefbcc109312a381c3413 (patch) | |
tree | 0ec473f2f1a36c320910dbfe8ae08991e6faeb2d | |
parent | 5d215904c395bc47376ce4194e9a0a67a44f722b (diff) | |
download | mongodb-3.2.7.tar.gz |
WT-2613 Add WT_UNUSED to a variable to fix Windows compilation. (#2717)mongodb-3.2.7
(cherry picked from commit 7deb9c213ba5c866d26dd381e20b632f991eedc9)
-rw-r--r-- | src/txn/txn_ckpt.c | 3 |
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. |