diff options
author | Jan Kotas <jkotas@microsoft.com> | 2017-01-21 08:21:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-21 08:21:08 +0300 |
commit | 972e86c243974d49047328b0dccd72eb44ca493a (patch) | |
tree | 2b889405a265314669aed480767aa955e4540367 /src/Native/Runtime/startup.cpp | |
parent | 0ac38d540ecf420a0659d86430270a2b7e897499 (diff) |
Fix build break with strict warning settings (#2558)
Diffstat (limited to 'src/Native/Runtime/startup.cpp')
-rw-r--r-- | src/Native/Runtime/startup.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Native/Runtime/startup.cpp b/src/Native/Runtime/startup.cpp index 3a368191b..41e5c994f 100644 --- a/src/Native/Runtime/startup.cpp +++ b/src/Native/Runtime/startup.cpp @@ -261,18 +261,20 @@ void DllThreadDetach() } } -void __stdcall RuntimeThreadShutdown(void* thread) +void RuntimeThreadShutdown(void* thread) { // Note: loader lock is normally *not* held here! // The one exception is that the loader lock may be held during the thread shutdown callback // that is made for the single thread that runs the final stages of orderly process // shutdown (i.e., the thread that delivers the DLL_PROCESS_DETACH notifications when the // process is being torn down via an ExitProcess call). -#if HAVE_THREAD_LOCAL + + UNREFERENCED_PARAMETER(thread); + +#if _WIN32 || HAVE_THREAD_LOCAL // If the current Unix platform doesn't support thread_local, we don't get the thread pointer // as the parameter, we just get NULL, so we can check the thread validity only if the // thread_local is supported - UNREFERENCED_PARAMETER(thread); ASSERT((Thread*)thread == ThreadStore::GetCurrentThread()); #endif |