Skip to content

Commit 8838c10

Browse files
committed
pragma out the error that only occurs on platforms that don't use the wait subsystem
1 parent 85899f0 commit 8838c10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/coreclr/System.Private.CoreLib/src/System/Threading/Thread.CoreCLR.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,9 @@ WaitSubsystem.ThreadWaitInfo AllocateWaitInfo()
557557
}
558558
#endif
559559

560+
#pragma warning disable CA1822 // Member 'OnThreadExiting' does not access instance data and can be marked as static
560561
private void OnThreadExiting()
562+
#pragma warning restore CA1822 // Member 'OnThreadExiting' does not access instance data and can be marked as static
561563
{
562564
#if TARGET_UNIX || TARGET_BROWSER || TARGET_WASI
563565
// Inform the wait subsystem that the thread is exiting. For instance, this would abandon any mutexes locked by

0 commit comments

Comments
 (0)