diff --git a/src/profile_manager.cpp b/src/profile_manager.cpp index 426174d..b786521 100644 --- a/src/profile_manager.cpp +++ b/src/profile_manager.cpp @@ -309,7 +309,11 @@ public: ////////////////////////////////////////////////////////////////////////// -ThreadStorage::ThreadStorage() : id(getCurrentThreadId()), allowChildren(true), named(false), pthread_id(pthread_self()) +ThreadStorage::ThreadStorage() : id(getCurrentThreadId()), allowChildren(true), named(false) +#ifndef _WIN32 +, pthread_id(pthread_self()) +#endif + { expired = ATOMIC_VAR_INIT(false);