diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-04-29 22:29:53 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-04-29 22:29:53 +0200 |
commit | 8499f15e67acb4789bfef4fcfc2b56dbfeae17bc (patch) | |
tree | c3127119852b3709dc69158e46b58e342db9c922 /src | |
parent | cf13ad23d4f873b41a235ba3c7b22eb81de69f2d (diff) |
Add Clang thread safety annotations for variables guarded by cs_warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/warnings.cpp | 6 |
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) { |