aboutsummaryrefslogtreecommitdiff
path: root/src/warnings.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-04-29 22:29:53 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-04-29 22:29:53 +0200
commit8499f15e67acb4789bfef4fcfc2b56dbfeae17bc (patch)
treec3127119852b3709dc69158e46b58e342db9c922 /src/warnings.cpp
parentcf13ad23d4f873b41a235ba3c7b22eb81de69f2d (diff)
downloadbitcoin-8499f15e67acb4789bfef4fcfc2b56dbfeae17bc.tar.xz
Add Clang thread safety annotations for variables guarded by cs_warnings
Diffstat (limited to 'src/warnings.cpp')
-rw-r--r--src/warnings.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/warnings.cpp b/src/warnings.cpp
index dc4e6e4842..534745f998 100644
--- a/src/warnings.cpp
+++ b/src/warnings.cpp
@@ -9,9 +9,9 @@
#include <warnings.h>
CCriticalSection cs_warnings;
-std::string strMiscWarning;
-bool fLargeWorkForkFound = false;
-bool fLargeWorkInvalidChainFound = false;
+std::string strMiscWarning GUARDED_BY(cs_warnings);
+bool fLargeWorkForkFound GUARDED_BY(cs_warnings) = false;
+bool fLargeWorkInvalidChainFound GUARDED_BY(cs_warnings) = false;
void SetMiscWarning(const std::string& strWarning)
{