From 4c63f1e53f0bee562aceb34e05175219fc572051 Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Mon, 1 Sep 2014 15:03:26 -0400 Subject: 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. --- bench/wtperf/wtperf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bench') 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) { -- cgit v1.2.1