diff --git a/db/db_bench.cc b/db/db_bench.cc index 1a379e9488..fcc930e671 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 be542e9af6..3d7a9a4dbe 100644 --- a/util/env_test.cc +++ b/util/env_test.cc @@ -11,6 +11,7 @@ #include #include +#include #ifdef OS_LINUX #include