Variable __xl_f is initialized immediately after its declaration, so do declaration with attributes during initialization.
This change should be noop and is needed for followup changes. --- mingw-w64-libraries/winpthreads/src/thread.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mingw-w64-libraries/winpthreads/src/thread.c b/mingw-w64-libraries/winpthreads/src/thread.c index c0b36bb1f80d..d799b90c23f9 100644 --- a/mingw-w64-libraries/winpthreads/src/thread.c +++ b/mingw-w64-libraries/winpthreads/src/thread.c @@ -545,7 +545,6 @@ __dyn_tls_pthread (HANDLE hDllHandle, DWORD dwReason, LPVOID lpreserved) #endif WINPTHREADS_ATTRIBUTE((WINPTHREADS_SECTION(".CRT$XLF"))) -extern const PIMAGE_TLS_CALLBACK __xl_f; const PIMAGE_TLS_CALLBACK __xl_f = __dyn_tls_pthread; /* Internal collect-once structure. */ -- 2.20.1 _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public