summaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-09-01 15:03:26 -0400
committerKeith Bostic <keith@wiredtiger.com>2014-09-01 15:03:26 -0400
commit4c63f1e53f0bee562aceb34e05175219fc572051 (patch)
tree722b48fc1504b9c489a02e7ec9710d6efbc078dd /bench
parentaa0b36355c10641422cf65a3feb2c593715bef7a (diff)
downloadmongo-4c63f1e53f0bee562aceb34e05175219fc572051.tar.gz
Minor shuffling to turn on more clang warnings:
- a few more uninitialized variables - make variables local to a single file static - replace use of WT_UNUSED_RET with error checking of the call (the macro was using a GCC extension clang doesn't like) With these changes, clang is mostly silent using the following options: -Weverything -Wno-cast-align -Wno-conversion -Wno-covered-switch-default -Wno-documentation-unknown-command -Wno-format-nonliteral -Wno-language-extension-token -Wno-missing-noreturn -Wno-packed -Wno-padded -Wno-switch-enum -Wno-zero-length-array Also, minor KNF whitespace cleanups.
Diffstat (limited to 'bench')
-rw-r--r--bench/wtperf/wtperf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bench/wtperf/wtperf.c b/bench/wtperf/wtperf.c
index e218e6e247b..41f95799c57 100644
--- a/bench/wtperf/wtperf.c
+++ b/bench/wtperf/wtperf.c
@@ -165,6 +165,7 @@ cb_asyncop(WT_ASYNC_CALLBACK *cb, WT_ASYNC_OP *op, int ret, uint32_t flags)
(void)flags;
cfg = NULL; /* -Wconditional-uninitialized */
+ thread = NULL; /* -Wconditional-uninitialized */
type = op->get_type(op);
if (type != WT_AOP_COMPACT) {