Module: wine Branch: master Commit: 3873d434616067e6219bf5969d4da27db8e0c9ac URL: https://gitlab.winehq.org/wine/wine/-/commit/3873d434616067e6219bf5969d4da27...
Author: Brendan Shanks bshanks@codeweavers.com Date: Tue Nov 8 10:45:40 2022 -0800
ntdll: Suppress deprecation warnings when calling MPTaskIsPreemptive().
---
dlls/ntdll/unix/loader.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/ntdll/unix/loader.c b/dlls/ntdll/unix/loader.c index 306f73dff4f..896247e109a 100644 --- a/dlls/ntdll/unix/loader.c +++ b/dlls/ntdll/unix/loader.c @@ -2358,10 +2358,13 @@ static void apple_main_thread(void)
if (!pthread_main_np()) return;
+#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" /* Multi-processing Services can get confused about the main thread if the * first time it's used is on a secondary thread. Use it here to make sure * that doesn't happen. */ MPTaskIsPreemptive(MPCurrentTaskID()); +#pragma clang diagnostic pop
/* Give ourselves the best chance of having the distributed notification * center scheduled on this thread's run loop. In theory, it's scheduled