Clang doesn't recognize that warning. (Older GCC versions don't support it either though.)
Signed-off-by: Martin Storsjö <[email protected]> --- mingw-w64-libraries/winpthreads/src/misc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mingw-w64-libraries/winpthreads/src/misc.c b/mingw-w64-libraries/winpthreads/src/misc.c index d9c55041e..2fbd87553 100644 --- a/mingw-w64-libraries/winpthreads/src/misc.c +++ b/mingw-w64-libraries/winpthreads/src/misc.c @@ -37,8 +37,10 @@ static ULONGLONG (WINAPI *_pthread_get_tick_count_64) (VOID); HRESULT (WINAPI *_pthread_set_thread_description) (HANDLE, PCWSTR) = NULL; #if defined(__GNUC__) || defined(__clang__) +#if !defined(__clang__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wprio-ctor-dtor" +#endif __attribute__((constructor(0))) #endif static void winpthreads_init(void) @@ -65,7 +67,7 @@ static void winpthreads_init(void) (HRESULT (WINAPI *)(HANDLE, PCWSTR))(void*) GetProcAddress(mod, "SetThreadDescription"); } } -#if defined(__GNUC__) || defined(__clang__) +#if defined(__GNUC__) && !defined(__clang__) #pragma GCC diagnostic pop #endif -- 2.43.0 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
