diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sync.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sync.cpp b/src/sync.cpp index 116533eb41..3f51383ea2 100644 --- a/src/sync.cpp +++ b/src/sync.cpp @@ -11,6 +11,9 @@ #include <stdio.h> #ifdef DEBUG_LOCKCONTENTION +#if !defined(HAVE_THREAD_LOCAL) +static_assert(false, "thread_local is not supported"); +#endif void PrintLockContention(const char* pszName, const char* pszFile, int nLine) { LogPrintf("LOCKCONTENTION: %s\n", pszName); |