Skip to content

Commit d1f7c05

Browse files
committed
Resolve some build warnings
1 parent f92fef7 commit d1f7c05

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_SpinLockExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void Test_ArrayExtensions_Ref()
4141

4242
int sum = 0;
4343

44-
Parallel.For(0, 1000, i =>
44+
_ = Parallel.For(0, 1000, i =>
4545
{
4646
for (int j = 0; j < 10; j++)
4747
{
@@ -54,7 +54,6 @@ public void Test_ArrayExtensions_Ref()
5454

5555
Assert.AreEqual(sum, 1000 * 10);
5656
}
57-
#endif
5857

5958
/// <summary>
6059
/// A dummy model that owns a <see cref="SpinLock"/> object.
@@ -63,4 +62,5 @@ private sealed class SpinLockOwner
6362
{
6463
public SpinLock Lock;
6564
}
65+
#endif
6666
}

tests/CommunityToolkit.Mvvm.UnitTests/Test_ObservablePropertyAttribute.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -924,12 +924,12 @@ partial class ModelWithMultipleGenericParameters<T, U> : ObservableObject, IValu
924924
private bool value;
925925

926926
[ObservableProperty]
927-
private T tValue;
927+
private T? tValue;
928928

929929
[ObservableProperty]
930-
private U uValue;
930+
private U? uValue;
931931

932932
[ObservableProperty]
933-
private List<T> list;
933+
private List<T>? list;
934934
}
935935
}

0 commit comments

Comments
 (0)