diff --git a/rostests/kmtests/ntos_ke/KeSpinLock.c b/rostests/kmtests/ntos_ke/KeSpinLock.c index dc2e944043e..30838b3271a 100644 --- a/rostests/kmtests/ntos_ke/KeSpinLock.c +++ b/rostests/kmtests/ntos_ke/KeSpinLock.c @@ -166,6 +166,7 @@ BOOLEAN TryNoRaise(PKSPIN_LOCK SpinLock, PCHECK_DATA CheckData) { #define CheckSpinLockLock(SpinLock, CheckData, Value) do \ { \ PKTHREAD Thread = KeGetCurrentThread(); \ + UNREFERENCED_LOCAL_VARIABLE(Thread); \ if (KmtIsMultiProcessorBuild) \ { \ ok_eq_bool(Ret, (Value) == 0); \