diff --git a/eth/main.cpp b/eth/main.cpp index 4d3707c10..9a6169b67 100644 --- a/eth/main.cpp +++ b/eth/main.cpp @@ -66,7 +66,7 @@ using namespace dev::eth; using namespace boost::algorithm; using dev::eth::Instruction; -static bool g_silence = false; +static std::atomic g_silence = {false}; void interactiveHelp() { @@ -1560,7 +1560,7 @@ int main(int argc, char** argv) }; auto getPassword = [&](string const& prompt){ - auto s = g_silence; + bool s = g_silence; g_silence = true; cout << endl; string ret = dev::getPassword(prompt);