summaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-09-12 11:27:24 -0400
committerKeith Bostic <keith@wiredtiger.com>2014-09-12 11:27:24 -0400
commit2c4f114c3da01b93ee47f88cb83e12fcd88f01dc (patch)
treedd5ceb9ea68f847753fe058ee5e2aaaff08301c6 /bench
parent31e150dfd7e33aa8254566510481250830f43e8a (diff)
downloadmongo-2c4f114c3da01b93ee47f88cb83e12fcd88f01dc.tar.gz
clang gets pthread_t initialization wrong: wtperf.c:1865:28: warning:
variable 'monitor_thread' may be uninitialized when used here [-Wconditional-uninitialized]
Diffstat (limited to 'bench')
-rw-r--r--bench/wtperf/wtperf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bench/wtperf/wtperf.c b/bench/wtperf/wtperf.c
index b6d65761b5a..002c1327e01 100644
--- a/bench/wtperf/wtperf.c
+++ b/bench/wtperf/wtperf.c
@@ -1745,6 +1745,8 @@ start_run(CONFIG *cfg)
char helium_buf[256];
monitor_created = ret = 0;
+ /* [-Wconditional-uninitialized] */
+ memset(&monitor_thread, 0, sizeof(monitor_thread));
if ((ret = setup_log_file(cfg)) != 0)
goto err;