diff options
| author | Cory Fields <[email protected]> | 2015-06-16 04:02:25 -0400 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2015-06-16 04:04:02 -0400 |
| commit | 2b890dd424b32320be6fc0333e67e2d7c9616065 (patch) | |
| tree | c20253faf3dd5346a8c4b2686144fb59edb2bac2 /src/util.cpp | |
| parent | locking: teach Clang's -Wthread-safety to cope with our scoped lock macros (diff) | |
| download | discoin-2b890dd424b32320be6fc0333e67e2d7c9616065.tar.xz discoin-2b890dd424b32320be6fc0333e67e2d7c9616065.zip | |
locking: fix a few small issues uncovered by -Wthread-safety
- rpcwallet: No need to lock twice here
- openssl: Clang doesn't understand selective lock/unlock here. Ignore it.
- CNode: Fix a legitimate (though very unlikely) locking bug.
Diffstat (limited to 'src/util.cpp')
| -rw-r--r-- | src/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index da5821e53..1097878b2 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -113,7 +113,7 @@ CTranslationInterface translationInterface; /** Init OpenSSL library multithreading support */ static CCriticalSection** ppmutexOpenSSL; -void locking_callback(int mode, int i, const char* file, int line) +void locking_callback(int mode, int i, const char* file, int line) NO_THREAD_SAFETY_ANALYSIS { if (mode & CRYPTO_LOCK) { ENTER_CRITICAL_SECTION(*ppmutexOpenSSL[i]); |