diff --git a/db/db_bench.cc b/db/db_bench.cc index 1a379e948..fcc930e67 100644 --- a/db/db_bench.cc +++ b/db/db_bench.cc @@ -1533,7 +1533,7 @@ class Benchmark { void AcquireLoad(ThreadState* thread) { int dummy; - std::atomic ap; + std::atomic ap(&dummy); int count = 0; void *ptr = nullptr; thread->stats.AddMessage("(each op is 1000 loads)"); diff --git a/util/env_test.cc b/util/env_test.cc index be542e9af..3d7a9a4db 100644 --- a/util/env_test.cc +++ b/util/env_test.cc @@ -11,6 +11,7 @@ #include #include +#include #ifdef OS_LINUX #include